Click to See Complete Forum and Search --> : Newbie CSS Question?


welsh
11-25-2005, 10:45 PM
hey,

im just kinda starting to learn CSS and before i just used tables and never used frames. With css how would i accomplish like the same thing as tables because i would be able to neatly organise things with the tables. Basically before i would create a 800 pixel wide tables and use that as my base because i dont think many people use 640 x ??? resolution anymore. Then basically break that into 3 parts and that would be me set i would just fill the top as the header, the left side as the nav and the right as the main body. Im just kind of confused how i would accomplish the same type of appearance with CSS. How would i accomplish something like that?

NogDog
11-25-2005, 11:05 PM
Basically, create a fixed-width div to contain the whole page, and set it's left and right margins to "auto". This will center that div within the page. Within that div, enter your HTML for the top, full-width section. Then add a fixed-width div with the "float: left" property for the left column content. Follow that with a fixed-width div with the "float: right" property for the right column content. (Make sure that the total widths of the two column divs plus their left/right margin, padding, and border widths do not exceed that of the main, containing div. One example: http://www.webdeveloper.com/forum/showpost.php?p=469730&postcount=3

welsh
11-26-2005, 01:42 PM
thanks!