Forum Moderators: not2easy
I need a 1 column div that is 100% of the page but with fixed a 20px gutter. I say gutter because it could be created with position, margin or padding — I don't care.
Here's the kicker. I need to be able to put a table with a 100% width in the div without it adding a horizontal scroll bar to the browser.
Seems simple enough, what am I missing? Thx!
Looks like it's only an issue in IE 6. (I'm beginning to take their antics personally.) Anybody got any solutions? I have to have a body margin of 0 in prep for a header while the content has to have a 20px gutter.
Going for complete basics, here is all there is:
CSS:
body { margin: 0px; padding: 0px; }
div#summary { position: absolute; left: 20px; right: 20px; }
HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="Assets/Styles/simple6.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="summary">
<h1>Page Title</h1>
<p>asdfasdf asdf asdf asdf asdf asdf asdf asdf asdfkj hasdkf aksjdf asdjfh kasjdfh kjasdfh asdfasdf asdf asdf asdf asdf asdf asdf asdf asdfkj hasdkf aksjdf asdjfh kasjdfh kjasdfh.</p>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
<tr>
<th width="50%" scope="row">Table Header:</th>
<td width="50%">Table Data</td>
</tr>
</table>
<p>asdfasdf asdf asdf asdf asdf asdf asdf asdf asdfkj hasdkf aksjdf asdjfh kasjdfh kjasdfh asdfasdf asdf asdf asdf asdf asdf asdf asdf asdfkj hasdkf aksjdf asdjfh kasjdfh kjasdfh asdfasdf asdf asdf asdf asdf asdf asdf asdf asdfkj hasdkf aksjdf asdjfh kasjdfh</p>
</div>
</body>
</html>