Content in DIV

Permabanned
Joined
18 Oct 2002
Posts
12,841
Location
Lost!
Stupid question but its been a long time since i did any of this...

I have a DIV container, inside this is the logo followed by another DIV menu and then below that the DIV for content.

Obviously the logo and the menu stay the same on every page, but the content in the content div changes....

When creating a page for menu item 1, do i replicate the enitre container, logo and menu code on every page for different content, or do i "call" content into the div somehow???
 
I'm aware of php includes but as this is probably a temp site being replaced by full e-commerce soon i shall just replicate the nav ba on each page.

Thanks chaps :)
 
Folllowing on from this i have implemented the php includes, however my CSS file no longer "controls" the appearance of the menu....how do i make this work still?
 
Where i have the menu in the index page i have put this

Code:
<div class="border" id="menu"><?php include 'menu.htm'; ?></div>

The contents of this file are...

Code:
<a href="winching.php" target="_self">WINCHING</a> | <a href="service.php" target="_self">SERVICE KITS</a> | ROPES | BRAKES &amp; CLUTCHES | ELECTRICAL | SUSPENSION | AXLES
 
Back
Top Bottom