Sunday 26th of March 2017 04:52:10 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;
quite often. Used properly, colors can really strengthen the
presentation of a document. Once you've decided how you plan to
use color, you have to decide how you'll apply it, since some
approaches will require the use of classes as well as simple element
selectors.

As an example, let's say you have a design where all H1 elements should be green, most H2 elements should be blue, and all hyperlinks should be dark red. However, in some cases H2 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; }

It is extremely important to note that the values for rect(...) are not side-offsets. They are, instead, distances from the upper-left corner of the element. Thus, a clipping rectangle which encloses a square 20 pixels by 20 pixels in the upper-left corner of the element would be defined as:

rect(0, 20px, 20px, 0)

The only values permitted with rect(...) are length values and auto, which is the same asfont-size is 12pt. Therefore,at the top level, the font's size will be three-quarters ofthat, or 9pt. All well and good, except the nextlevel down will see a reduction to 6pt, and thenext level to 4pt, and so on. Once the text goesbelow 7pt, it will become unreadably small on mostmonitors (and will be tough to read even on most printouts).

You're probably thinking to yourself, "Ha! How dumb doyou have to be to shrink text in lists like that?" True,clear="left">. Figure 7-74shows the following declaration, which uses clearto prevent H2 elements from flowing past floatedelements to the left side:

H2 {clear: left;}
Figure 7-74

Figure 7-74. Clear to the left

However, this will allow floated elements to appear on the right sideof H2 elements, as shown in Figure 7-75.