- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Why are you always using div#wrap …. why not use the body-tag in the way you normaly use the #wrap
…… hope you understand ….
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).
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.
I don’t think using the body tag for that is a good idea anyway.
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…
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?