Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Ok cool...how would I create a navigation bar? Would I put that code into a column of a table or something?

  2. #17
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,444
    Thanks
    11
    Thanked 310 Times in 309 Posts
    Just like you did in your current code, you could simply list all your links with <br> separating them. There are higher-tech ways to do it, but that's unrelated to this particular discussion. So then you have a list of your nav items, and you put it all in one file, called nav.inc or so. It essentially looks like the code I gave you, but again it should be stripped of all the doctype, head, body, etc stuff.

    Then in each of your site pages, you'd have a line like:
    Code:
    <?php include ("nav.inc"); ?>
    wherever you want the nav included (ie, probably a <div> on the left side of the page).

    That should do it.
    Dave

  3. Users who have thanked tracknut for this post:

    gmag73 (02-09-2012)


 
Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •