Click to See Complete Forum and Search --> : Page border
Beach Bum
04-23-2005, 09:18 AM
I want a line down the left side of the page. This CSS works in IE but not in other browsers (like FireFox). Anyone have a cross browser solution?
body { border-left: solid 1px blue; }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>line</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
* {
margin:0;
padding:0;
}
body, html {height:100%;}
body {
margin-left:3px ;
border-left: solid 1px blue;
}
-->
</style>
</head>
<body>
<p>content</p>
</body>
</html>
Beach Bum
04-23-2005, 10:00 AM
Adding
body, html {height:100%;}
does the trick . . . thanks :)