Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

navigation bar menu

Status
Not open for further replies.

vietboy505

Technical User
Feb 20, 2006
56
US
I want to write a navigation bar menu file that will place inside every php file.

Is it possible to set all the navigation link on the left?

Such as

link.php
Code:
Link 1
Link 2
Link 3

Then put a include function in every php file.
Whenever, I feel like updating the links, I just change link.php and it will change the rest, it's kind like XML.
 
Code:
<div id=menu style="float:left">
<? include('nav_link.php') ?>
</div>

<div id=logo style="float:top; float:right">
<? include('logo.php') ?>
</div>

<div id=copyright style="float:bottom; float:center">
<? include('copyright.php') ?>
</div>
my copyright.php is athe top.

Also, can I combine logo.php & copyright.php into a file? This way I don't have to embed two divs for each .php.
Don't know how would this work since the link & image will be at different position.
 
This is not a php question. You can put your included code anywhere, it is up to (x)html and css to position the container where you want it. So forum215 would be more appropriate. Incidentally, float does not have values top, bottom or center.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top