Center four columns in CSS

Posted by Ernest on Stack Overflow See other posts from Stack Overflow or by Ernest
Published on 2010-05-13T10:51:44Z Indexed on 2010/05/13 10:54 UTC
Read the original article Hit count: 245

Filed under:
|
|

Hi everybody,

I'm trying to make four columns that are centered on the frontpage. I would like it to look like this example:
http://www.clutterpad.com/

My code looks like this:

#bottom-container {width:100%;height:250px;position:relative;}
#bottom-mid {background-color:white;}
#bottom-left, #bottom-mid, #bottom-right {height:250px;}
#bottom-left, #bottom-right {width:50%;float:left;}

#bottom-left {background-color:white;position:absolute;top:0px;left:0px;}
#bottom-right {background-color:white;position:absolute;top:0px;left:50%;}

#bottom-mid {position:relative;margin:0px auto; width:1000px;z-index:2;}
#column-container {width:100%; margin:20px auto;}
.column {width:200px;float:left;font-size:10pt;font-family:Arial;margin:20px 10px;}

But it's not working out. How should I code it to look like the example I mentioned before?

© Stack Overflow or respective owner

Related posts about css

Related posts about column