Ok, so in one of my last posts, I ask how to make my website look the same on all screen resloutions. Someone suggested liquid layouts. So, I did some research and I found this:
CODE
{
margin: 0;
padding: 0;
}
body
{
background: #FFF;
color: #333;
font-family: Arial, Helvetica, sans-serif;
font-size: 2px;
}
h2
{
padding: 5px 0 5px 0;
margin: 0 0 10px 0;
}
p
{
margin: 0 0 10px 0;
}
ul
{
padding: 5px 0 5px 20px;
}
li
{
padding: 3px 0 3px 0;
}
#wrapper, #content-wrapper
{
float: left;
width: 100%;
}
#header
{
height: 60px;
padding: 15px 0 5px 0;
border-bottom: 1px solid #ccc;
background: #FFFFDF;
}
#content
{
margin: 0 15% 0 20%; /*Margins for content column. Should be “0 RightColumnWidth 0 LeftColumnWidth*/
}
#left
{
float: left;
width: 20%; /*Width of left column in percentage*/
margin-left: -100%;
background: #EEFFDF;
}
#left h2, #right h2
{
border-bottom: 1px dotted #CCC;
}
#right
{
float: right;
width: 15%; /*Width of right column in pixels*/
margin-left: -15%; /*Set margin to that of -(RightColumnWidth)*/
background: #DFFDFF;
}
#footer
{
clear: left;
width: 100%;
background: black;
color: #FFF;
text-align: center;
padding: 4px 0;
}
#footer a
{
color: #FFFF80;
}
.in
{
margin: 10px; /*Margins for inner DIV inside each column (to provide padding)*/
margin-top: 0;
}
I got it from
nowcss. It then occured to me that I don't know how to use the percentages. Are there any tuts around here for that? Also, when you use the supplied code, I doesn't look like the picture they say it shoud. Can someone take a look at the code and confirm it.
Thanks for anything,
Aaron