Thursday 02nd of October 2014 04:26:25 PM

Nice and Free CSS Templates

Figure 8-13

Figure 8-13. Automatic width

This is the most common case, in fact, since it is equivalent tosetting the margins and not declaring anything for thewidth. The result of this markup is exactly thesame as that shown in Figure 8-13:

P {margin-left: 100px; margin-right: 100px;} /* same as before */


In practice, only browsers released in early 1999 or later correctlyhandle auto, and not even all of them get it

This site contains free css templates for your website - Just copy and paste and there you have a stunning website !

Menu und content

Menu fixed, content

Menu und content

3 columns all

4 columns all

Menu floating

Menu fix, Inhalt u.
Head dynamic

3 columns fix

dynamic mit
Head und Footer

fixed BOX centered

dynamic BOX

fixed Box total
either side:

H2 {clear: both;}<H2 STYLE="clear: none;">Not Cleared!</H2>
Figure 7-78

Figure 7-78. Not clear at all

clear works by increasing the top margin of anelement so that it ends up below a floated element, so any marginwidth set for the top of a cleared element should be effectivelyignored. That is, instead of being 1.5em , forexample, it could be increased to 10em , or outside, it will appear the way list items alwayshave on the Web, as you can see in Figure 7-85:

LI {list-style-position: outside;}
Figure 7-85

Figure 7-85. Placing the bullets outside list items

Should you desire a slightly different appearance, though, you canpull the bullet in toward the content by setting the value to beinside:

LI.first {list-style-position: inside;}

As you can see, the first column is now quite a bit longer than the second. However, since we haven't done much of anything to the second column, let's leave things as they are for the moment.

An offset block of text showing a quotation in a larger size is usually called a "pull quote." We have one near the middle of the second column, so let's decide how that will be handled. First, the text is a bit larger than the font size of the main article text, and it's in a sans serif font. Also, it has those nice lines at the top and bottom of the pull quote's box,