bigoxygen (AT) gmail (DOT) com wrote:
You've got
body {
margin: 0;
padding: 0;
font-family: Verdana, Arial, Helvetica, Sans-serif;
/* default font-size is also defined in ./css/font/normal.css */
font-size: 76%;
color: #333;
background: #789;
}
and then you've got
#evalResults body {
background-color: #666666;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
and then
#evalResults div.logo {
width: 100%;
background-color: #778899;
padding: 3px;
but then, finally,
#evalResults {
background: #fff;
margin-left: 0px;
margin-top: 15px;
margin-right: 0px;
margin-bottom: 15px;
}
So you're getting top and bottom margins of 15px for an element with
id="evalResults" because you explicitly declared them in the
/#evalResults/ selector.
Why don't the property values declared for the /#evalResults body/
selector supersede these? Because that selector selects BODY elements
that are INSIDE an element with id="evalResults". If you want that block
of properties to apply to a BODY element HAVING id="evalResults", you
need /body#evalResults/. Values of properties declared for that selector
should override the values of the same properties set for the plain
/#evalResults/ selector.
--
Harlan Messinger
Supporting member of Virginia Concubines for Traditional Marriage