Welcome Guest, Not a member yet? Register   Sign In
Div Conflict, Help!
#1

[eluser]gswallow[/eluser]
Ok, am learning Code-Igniter as I edit this site I have inherited. Will go through it thoroughly after I get some changes done that need to be finished yesterday.

A table of graphics had been in the header.php making it rather difficult to see even a page change. Good for Welcome/Home, but not needed for every single page on the site. Moved table to home.php and need to change margin to what it was in header_view.php as the table is maybe one tab space(s) to the right and out of alignment with the rest of the page.

I think it might be something in division formatting this much I have figured out. The last line of header.php is:

<div id="content">

If I remove this line from header.php and place it after the table in home_view.php then the Homepage is aligned properly. WooHoo! This, of course, leaves all other pages without the <div id="content"> and formatted improperly. Have tried to drop out of the content div with </div> at the top of home.php and adding <div id="content"> after the table. No change with formatting.

Probably would work to remove <div id="content"> from header.php and put it at the top of every view php, but I am in a bit of a hurry and would rather not have to go back and remove it when I find/figure a better fix. I'm thinking something in a controller, but that would probably affect other pages.

Please folks, my CEO is getting impatient. I can go through all the learning of CodeIgniter after I get this fix done. Right now I need to make him happy. Please tell me if you need any files/code to figure a change and I'll paste them in or send them directly.
#2

[eluser]jedd[/eluser]
header.php and home.php are custom files from your previous developer(s) - they're not something that ship with CI.

Similarly, all your CSS are belong to you.

So, really, there's not much we can offer here as far as styling goes. By definition this is done in views (with a reliance on stylesheets too, of course, and any js or other gumpf that was thrown into the mix). You probably, therefore, want to focus on the views sub-directory while also looking for the stash of .css files.

If the site was coded badly, though, you might find html embedded within the controllers .. in which case, even more bets are off.

For future projects, it's always good to demand documentation be shipped with the final product. I know, you've got other things on your mind, but when you've resolved this problem you'll have something else on your mind, too, and the same problem will recur in a few months down the track.
#3

[eluser]├╝berfuzz[/eluser]
@swallow - Pretty much like jebb said. If the site was properly coded it would probably have been easy to edit the layout. Is there any chance of getting in touch with the maker?
#4

[eluser]gswallow[/eluser]
Nothing is documented at all. No flow, no comments in PHP at all. Last person to touch the CodeIgniter just says $100 per hr if I break it; wish I was still using AT&T SVR32 on a 3B2. Don't have time to argue. I partnered up with the CEO (none IT type) almost one year after he had contracted the development of the site. We signed off just so we culd get our hands on it and fix it ourselves. I couldn't believe they took more than 3 months to build what they had let alone more than a year.

Views is where I've been able to get most of my success done. Please forgive me I typed home.php when it was home_view.php that I dropped the table into. I have tried editing the table to remove the &lt;? ... ?&gt; code and make it straight html, but that left me a blank white mess.

Here's the table that seems to have embedded html/CI. Porbably not going to be much. I just need to set the left margin back one tab I think.

</div> /* attempt to take page out of <div id=content>
<table width="898" height="311" border="0" align="left" cellpadding="0" cellspacing="0" id="Home">
<tr>
<td>
<img >config->item('FAL_assets_front') . '/' . $this->config->item('FAL_images'); ?&gt;/header/spacer.gif" width="329" height="5" alt=""></td>
<td>
<img >config->item('FAL_assets_front') . '/' . $this->config->item('FAL_images'); ?&gt;/header/spacer.gif" width="151" height="5" alt=""></td>
<td>
<img >config->item('FAL_assets_front') . '/' . $this->config->item('FAL_images'); ?&gt;/header/spacer.gif" width="417" height="5" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img >config->item('FAL_assets_front') . '/' . $this->config->item('FAL_images'); ?&gt;/header/header_03.jpg" width="480" height="141" alt=""></td>
<td>
<img >config->item('FAL_assets_front') . '/' . $this->config->item('FAL_images'); ?&gt;/header/header_04.gif" width="417" height="141" alt="access your medical records"></td>
</tr>
<tr>
<td colspan="2">
<img >config->item('FAL_assets_front') . '/' . $this->config->item('FAL_images'); ?&gt;/header/header_05.jpg" width="480" height="169" alt=""></td>
<td>
<img >config->item('FAL_assets_front') . '/' . $this->config->item('FAL_images'); ?&gt;/header/header_06.gif" width="417" height="169" alt=""></td>
</tr>
<tr>
<td>
<img >config->item('FAL_assets_front') . '/' . $this->config->item('FAL_images'); ?&gt;/header/spacer.gif" width="329" height="3" alt=""></td>
<td>
<img >config->item('FAL_assets_front') . '/' . $this->config->item('FAL_images'); ?&gt;/header/spacer.gif" width="151" height="3" alt=""></td>
<td>
<img >config->item('FAL_assets_front') . '/' . $this->config->item('FAL_images'); ?&gt;/header/spacer.gif" width="417" height="3" alt=""></td>
</tr>
</table>

<div id="content"> /* put table back into <div id=content>




Theme © iAndrew 2016 - Forum software by © MyBB