Forums

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

Home Forums CSS fixing elements when window resized

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

    How scan you stop div elements moving around when a window is resized .. e.g. like the bbc site or apple site, is there a simple css rule would you use for this.

    thanks

    #88779
    TheDoc
    Member

    Yea, it sounds like you just want a fixed-width site. You could wrap all of your content in a div called ‘page-wrap’ and then apply a fixed width to it (eg, 960px) and then add margin: 0 auto; to it to make it centered.

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