Results 1 to 5 of 5

Thread: Question about chrome menu CSS.

  1. #1
    Join Date
    Aug 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Question about chrome menu CSS.

    Hi, I am new to CSS.

    I downloaded the chrome css menu from this site and it works great.

    I have a problem though:

    Lets say I use this menu for my site which has 60 pages. As soon as I would like to add/edit/remove a link in the CSS menu, I currently have to change in every page since the actual links for the menu are in the HTML code?

    Is there a way or method to seperate and put the divtag links as an external file, or in the CSS file somehow???


    Sorry, if this is a stupid question. As I said I am new to CSS. My last menu, was a java menu that I used as a frame, and I only had to change that page and the menu changed for the entire site......

    TIA..

  2. #2
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    PHP. You'd make all the files .php files, and make a seperate php file and include it in every page, like so:

    inc.php:
    PHP Code:
    <div id="menu">...</div>
    <!-- 
    put your menu's code above --> 
    page.php:
    PHP Code:
    <?php include('inc.php'); ?>
    <!-- include that in every page -->
    So, when you edit inc.php, you edit what's included on every page. Make sure you change your files to a .php extension, though. [And that your server supports PHP]
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.

  4. #4
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default An alterative option

    If you are using dreamweaver you can create the menu as a library item (a self contained bit of code) and include this on each page much like php but without having to change the language of your entire site and thereby avoiding all the url redirects etc required.

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

    Default HTML include

    You can have html include like it's done here.

    Arie Molendijk.

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
  •