Jump to content

css skeleton


martins

Recommended Posts

Hi.

 

I've been looking for some nice css examples/skeletons of a 3 column website. I've found a few but they all mention some Opera/IE bugs. I don't now how dated the examples are so I'm not sure

how relevant they are.

 

Can anyone recommend (link/example, etc) a recommended skeleton for a 3-column website (with a 'header').

 

Thank you

Link to comment
Share on other sites

3 column

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb">
<head>
<title>3 Column Layout Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css" media="screen">
#wrapper { 
width:960px; 
margin:0 auto; 
padding:0.1em; 
background-color:red; 
}
#header { 
padding:1em; 
background-color:blue; 
}
#container { 
padding:1em; 
background-color:green; 
}
#lefCol1 { 
float:left; 
width:165px; 
padding:1em; 
background-color:orange; 
}
#midCol2 { 
float:left; 
width:500px; 
padding:1em; 
background-color:yellow; 
}
#rigCol3 { 
float:left; 
width:165px; 
padding:1em; 
background-color:purple; 
}
#footer { 
text-align:center;
color:white;
clear:both; 
padding:1em; 
background-color:black; 
}
.clearfix:after { 
visibility: hidden; 
display: block; 
font-size: 0; 
content: " "; 
clear: both; 
height: 0; 
} 
.clearfix { 
display: inline-block; 
}
* html .clearfix { 
height: 1%; 
}
.clearfix { 
display: block; 
} 

</style>
</head>
<body>
<div id="wrapper">
<div id="header">XCODERX</div>
<div id="container" class="clearfix">
<div id="lefCol1">Column 1</div>
<div id="midCol2">Column 2</div>
<div id="rigCol3">Column 3</div>
</div>
<div id="footer">Footer</div>
</div>
</body>
</html>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.