C
Ciaran
Hi, Is there any way to resolve this? I want a 12px space around the
edge of the page (for a body background pattern) but the central div
needs to be minimun 100% height without creating a vertical scrollbar
(until one is needed). Here's what I got but the padding -12px doesn't
work....
<html>
<head>
<style>
* {margin: 0;}
html, body {
height: 100%;
}
#greybox {
min-height: 100%;
margin:12px;
padding:-12px;
background-color:#CCC;
}
</style>
</head>
<body>
<div id="greybox">
<p>content here</p>
</div>
</body>
</html>
Thanks a lot!
Ciarán
edge of the page (for a body background pattern) but the central div
needs to be minimun 100% height without creating a vertical scrollbar
(until one is needed). Here's what I got but the padding -12px doesn't
work....
<html>
<head>
<style>
* {margin: 0;}
html, body {
height: 100%;
}
#greybox {
min-height: 100%;
margin:12px;
padding:-12px;
background-color:#CCC;
}
</style>
</head>
<body>
<div id="greybox">
<p>content here</p>
</div>
</body>
</html>
Thanks a lot!
Ciarán