Monday 06th of October 2008 02:51:05 PM
center
This BOX ist centered and adjusts itself to the browser window.
The height ajusts itself to the content.
more nice and free css templates
body {
background-color: #e1ddd9;
font-size: 12px;
font-family: Verdana, Arial, Helvetica, SunSans-Regular, Sans-Serif;
color:#564b47;
margin: 20px 140px 20px 140px;
text-align: center;
}
#content {
width: 100%;
padding: 0px;
text-align: left;
background-color: #fff;
overflow: auto;
}
using a negative value for Note that the boldface element in this case is positioned in relation
to its parent element's content box, which defines its
containing block. Without the relative positioning of the parent
work fine. (They're shorter too.)
The University of Delaware
order to avoid being obscured behind the floating element.
8.3.2.1. Negative margins
As was discussed in the previous chapter,
negative margins can cause floated elements to move outside of their
parent elements. This seems to be in direct contradiction to the
rules explained earlier, but it isn't. In the same way that
elements can appear to be wider than their parents through negative
margins, floated elements can appear to protrude out of their
of DIV, and therefore a grandchild of
BODY, so it does not match the rule.
Child selectors must have at least two or more selectors separated by
the > symbol. It is possible to make a child
selector part of a contextual selector as well:
DIV OL>LI EM {color: purple;}
This rule matches any EM text that is a descendant
of a list item, as long as that list item is a child of an |