Friday 15th of December 2017 08:38:15 PM

center a FIXED BOX

This BOX has a fixed width.
It is centered and adjusts to the browser window.
The height adjusts to the content.
more nice and free css templates

body {
background-color: #e1ddd9;
font-size: 12px;
color:#564b47;
padding:20px;
margin:0px;
text-align: center;
}
#inhalt {
text-align: left;
vertical-align: middle;
margin: 0px auto;
padding: 0px;
width: 550px;
background-color: #ffffff;
border: 1px dashed #564b47;
}

HEAD element contains the following:

<LINK REL="stylesheet" TYPE="text/css"HREF="http://www.mycomp.com/style/site.css">

This ensures that all documents -- even those without their ownstyle declarations -- will use the site's overall stylesheet. Figure 11-1 shows one example of how thepages will appear.

Figure 11-1

Figure 11-1. Final results

the type of data that is to be loaded using the LINK tag. That way, the web browser knows that the style sheet is a CSS style sheet, a fact that will determine how the browser deals with the data it imports. After all, there may be other style languages in the future, so it will be important to say which language you're using.

Next we find the HREF attribute. The value of this attribute is the URL of your style sheet. This URL can be