Forums

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

Home Forums CSS Wrap – body

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #31734
    Morten
    Participant

    Why are you always using div#wrap …. why not use the body-tag in the way you normaly use the #wrap

    …… hope you understand ….

    #58874
    TheDoc
    Member

    Because sometimes you want to apply a seperate background to the body that expands the full browser.

    In most cases, you won’t always want all items to be contained within a wrap (a footer, for example).

    #58851
    noahgelman
    Participant

    Another example would be like Facebook’s chat box in the bottom left or sometimes people put social networking buttons on the side of the screen. In order to cover all possibilities, it’s easy to just put a page-wrap around everything. That way everything is nice and centered and if you want to put something outside it, like in the corner or on the site, it’s relatively easy.

    #58811
    chrisburton
    Participant

    I don’t think using the body tag for that is a good idea anyway.

    #58747
    Comrad3
    Member

    I’ve found that it’s good practice to leave the tag selectors alone.

    In some corporate environments they contract out for SEO “specialists” who run shit up and down the background for robots to find and I’m sure they don’t always check before hand to see if you are modifying any of the selectors. Not to mention jr web techs that may use the code in the future, greasemonkey scripts…

    #58124
    Morten
    Participant

    Thanks – This makes sense

    But what about a “mobile-phone-site-only” … Iphone/Android … can I use the body tag instead of the wrap div?

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