A better approach to this navigation bar?

Discussion in 'CSS' started by bowdeni, Jul 16, 2008.

  1. #1
    My question relates to this site.

    At current, I have used CSS to create the navigation bar using absolute positioning. Whilst the navigation looks and functions great, updating the site can be troublesome. When a new product is added, each page has to be updated with each navigation button DIV Class changed. When there are 10 a page, and 30 or so pages with each update, that's a lot of work.

    What I'd like to do is to have an approach where by I use static positioning. Thus, when I add a product, all I have to do is copy and paste in a chunk of code and it'll push all the navigation buttons below it down.

    Is this a feasible approach? What alternative approaches would you consider?

    Thanks in advance.
     
    bowdeni, Jul 16, 2008 IP
  2. yankzilla

    yankzilla Peon

    Messages:
    159
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What you could do is make it an unordered list <UL> and include it via:
    <?php include('docehere'); ?>
    Code (markup):
    This way, you only have to use 4 classes: dark purple, light purple, dark gray and light gray.

    I could redo your navigation system for you in you wanted.
     
    yankzilla, Jul 16, 2008 IP