Use a floated "filler" element and padding.
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Offset</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
html, body {
height:100%;
}
body {
padding:0 2px 2px 0;
}
#left_fill {
width:300px;
height:100%;
float:left;
}
#content {
height:100%;
position:relative;
margin: 85px 0 0 0;
}
</style>
</head>
<body>
<div id="left_fill"></div>
<div id="content">Content goes here </div>
</body>
</html>
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|