How can I make the background color of a div extend past the page fold?
Example:
--
<html>
<head>
<style>
* {
margin: 0px;
padding: 0px;
}
#container {
background-color: #ccc;
clear: both;
height: 100%;
width: 50%;
}
</style>
</head>
<body>
<div id="container">
<p>Lorem ipsum...</p>
</div>
</body>
</html>
--
Please substitute the "Lorem ipsum" with content that forces the use to scroll down. When you scroll down, I will lose the CCC background of the div. This feels like it'd be a trivial fix, but I'm not sure what I'm over looking.
TIA
leo
Example:
--
<html>
<head>
<style>
* {
margin: 0px;
padding: 0px;
}
#container {
background-color: #ccc;
clear: both;
height: 100%;
width: 50%;
}
</style>
</head>
<body>
<div id="container">
<p>Lorem ipsum...</p>
</div>
</body>
</html>
--
Please substitute the "Lorem ipsum" with content that forces the use to scroll down. When you scroll down, I will lose the CCC background of the div. This feels like it'd be a trivial fix, but I'm not sure what I'm over looking.
TIA
leo