My HTML:
div.container
My CSS:
html, body {
height: 100%;
background-color: red;
padding-left: 0px;
padding-right: 0px;
}
.container {
height: 100%;
background-color: blue;
margin-top: 5px;
*zoom: 1;
}
I am looking to achieve a specific effect in my layout without using overflow=hidden. How can I achieve this with the properties mentioned above?
Imagine the following scenario:
* The body has a red background
* There is a container div within the body that should have a top margin of "x" pixels
* The color of the container div is blue
* No scrollbars and no need for overflow="hidden"
I am seeking advice on how to implement this design. Can you help me accomplish this?