Results 1 to 4 of 4

Thread: css navigation

  1. #1
    Join Date
    Oct 2005
    Posts
    18
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default css navigation

    hi - I would like to create a list of 17 links on a vertical navigational menu, what should I do to ensure that if I change, delete a link on the menu that it changes throughout the rest of the site also? Instead of having to go through each page individually. hope you can help!

    Thanks
    Michael
    Last edited by mickeymickeyg; 07-14-2008 at 04:24 PM. Reason: typo

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    css is a tool to style the links, or make them "look" different.

    If you wish to only need to update one section of the navigation and have it change across the entire site then you either need to create a database/table relationship or you need to use some sort of other template system where you "pull in" all of the links into each page... to do this you would need some sort of server-side programming language like php.

    There is a way to accomplish this without using a server-side code, by using javascript, however javascript can be turned off, and thus those users will not be able to effectively navigate properly through your site.

  3. #3
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    This (the 'URL TO CODE') might be useful. There's a download.
    Put your menu in 'menu.html', then insert into every page: <a href="menu.html" rel="include" >MENU</a>. Users who have javascript disabled will see a link towards the menu (with text: MENU). Users who have javascript enabled (the vast majority) will see the menu itself.
    ---
    Arie Molendijk.

  4. #4
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    OR... if your menu is just a list of links (no unfolding menu items), you could do this:
    1. Put the list of links in a file called 'menu.html'.
    2. On every page except 'menu.html', put something like the following in the body section:
    <iframe src="menu.html" style="position:absolute; top:20%; left:10px;width:150px;height:60%;overflow:auto"></iframe>

    Css for the body (just an example):body {padding-left: 160px}
    ---
    Arie.

  5. The Following User Says Thank You to molendijk For This Useful Post:

    mickeymickeyg (08-13-2008)

Bookmarks

Posting Permissions

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