Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS help with sidebar navigation (basics)

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25918

    Hi,

    i’m pretty new to css and website building in general, been going over a week and got this far http://www.doltonanddex.co.uk which I am really happy with and I have the three state menu thing going (only on about for active, havnt got round to the others yet)
    but…(get to the point)…. I want a sidebar on the left of the big white box with sub catagorys that link to other pages within the main nav sections, eg in the our work tab at the top I want when its the active page for the sub pages to be displayed on the right each with their own rollover states etc. Not sure how to structure the site and the css?? do I make a seperate HTML page for each sub catagory and then put in a seperate UL for that page each time with its own id and then reference all of those lists in the one style sheet? It just seems like I will end up with loads of css?

    sorry if this doesnt make any sense

    Dexy

    #63055
    Rob MacKay
    Participant

    what I would do is use the UL list idea and instead of creating the "drop down" full CSS menu effect, I would use a little jQuery to position the sub categories on the left instead of anywhere near your top menu.

    For your HTML you would still go:

    But say for your about page…

    Code:

    Then you could position absolutely the ul#nav li ul to where ever you want… just make sure you have your #nav dosn’t have "overflow:hidden;"

    Then use the jQuery to control the switch state, and maybe add a sexy bit of animation :D

    just one way of doing it of course…

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.