Tuesday 09th of February 2010 03:18:51 AM
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;
}
XML documents are easily committed to a persistence layer
same as block-level elements when it comes to formatting: verticalmargins are collapsed while horizontal margins are not, and theborders and padding default to zero unless explicitly declaredotherwise. Remember, however, that not all replaced elements areimages. Most form elements are replaced, for example.
In general, all replaced elements (block-level or otherwise) can bescaled using height and width.In most other ways, inline replaced elements are handled verydifferently, as we'll see later in this chapter.
The other thing you can do with list-style-imageis set it to the default value of none. This isgood practice because list-style-image isinherited -- so any nested lists will pick up the image as thebullet, unless you prevent this from happening:
UL {list-style-image: url(ohio.gif); list-style-type: square;}UL UL {list-style-image: none;}
Since the nested list inherits the item typesquare but has been set to use no image for its