Hello and welcome to our community! Is this your first visit?
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
    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
    Thanked 401 Times in 398 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:
    <?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.

  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