- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 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.
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?
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.
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.
> 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
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?
> 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
I never had experience to build responsive page, but for fixed page body as a wrapper seems quite natural