Forums

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

Home Forums CSS fixed width centered div until browser window reduces and collapses content

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #172042
    ahhhhh helllllp
    Participant

    Im new to coding with divs and responsive/resizable content. I need to know how to set a div to a fixed width of 1200px centered in the browser until the window is reduced to below 1200px. After the window hits that breaking point the div needs to shrink and the li elements need to be able to fold down below each other. There will be a background image stretching to 100% of the screen at all times but the div will be centered until 1200px then collapse. Sorry if its not communicated the best just totally frustrated. All help is super appreciated.

    #172046
    Paulie_D
    Member

    li elements need to be able to fold down below each other.

    Not sure exactly what this means but perhaps you could show us where you are right now in a reduced case demo in Codepen,io.

    If you have images of how it’s supposed to look that would be useful too.

    I hesitate to recommend CSS frameworks but it could be that Bootstrap or Foundation is the sort of thing you are looking for.

    Example Bootstrap Menu – http://getbootstrap.com/examples/navbar/

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