WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > CSS > Using a container div for all content

Reply
  Thread Tools Display Modes
Old 1st February 10, 07:16 PM   #1
Swedeberry
WLC Member
 
Join Date: Feb 2010
Posts: 1
Default Using a container div for all content

From a newb: I am looking for the safest CSS layout. I am thinking of a container div and putting all my other divs (masthead,content,colums, footer, etc.) inside of it. This seems to me the safest, easiest way to layout a page. What do I not know that I should know about this type of layout, like why don't more people use it? And what positioning should I use? I was thinking a relative div for the container and absolute divs inside of that. I appreciate your help!
Swedeberry is offline   Reply With Quote
Old 12th February 10, 10:26 AM   #2
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,194
Default Re: Using a container div for all content

Quote:
like why don't more people use it?
I use it, if the layout calls for such a design.

Quote:
And what positioning should I use?
Probably no positioning at all, It's rarely necessary to position elements

Quote:
I was thinking a relative div for the container and absolute divs inside of that.
Just stay away from absolute positioning UNLESS you REALLY understand it. There is RARELY any need at all to position any element absolutely.

Quote:
I am looking for the safest CSS layout
The "safest" one is where you use no positioning at all and simply use the document flow as it should be used.
chrishirst is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:34 PM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyrightę 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.