Forums

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

Home Forums CSS Wrapper body width

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #45753
    Kuzyo
    Participant

    Hi guys

    Can’t figure out why some developers make wrapper the same width as a body? In what circumstances I have to do it?

    #139919
    Kitty Giraudel
    Participant

    Do you have any example? I’m not sure what you mean.

    By the way, some developers are still kind of reluctant from using the body as the main wrapper.

    #139933
    Kuzyo
    Participant

    Here is example http://rutracker.org/forum/index.php **body_container** he doesn’t have special properties. And I saw sach layout in more sites.

    #139939
    Paulie_D
    Member

    > In what circumstances I have to do it?

    When you come across a situation where it’s required to solve a problem.

    I have no idea what that situation might be but after while it might just become habit…like using a reset

    #139941
    Kuzyo
    Participant

    Before I knew that it’s bad habit to set width to body, but then I have read this article http://csswizardry.com/2011/01/using-the-body-element-as-a-wrapper/
    Which variant is better to use?

    #139943
    Kitty Giraudel
    Participant

    > Before I knew that it’s bad habit to set width to body

    There are two very different things here:
    – setting a fixed width to any container is kind of “bad habit” since it will break at lower screensizes
    – using the body as a container is not a bad habit, it’s perfectly valid

    #139954
    Kuzyo
    Participant

    I never had experience to build responsive page, but for fixed page body as a wrapper seems quite natural

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