Subscribe:

Saturday

Clearing Floats


Occasionally you are going to experience an example in which you actually need to quit or obvious a flow. One example might include the same scenario I just used an picture sailed to the right of a few sentences of textual content.

Suppose you desired to crack the lengthy passage up into two sentences, and then you only desired the first passage to place around the picture. The staying passage would then take up the whole size of the site. To achieve this, you have to “clear the float” by including the obvious home to the area in concern, such as:
<p style="clear: right;">Remaining paragraph of text. . .</p>

This causes the passage to be “pushed down” until it is below the base of the sailed picture, like this:
                                         
Possible values for the clear property are left, right, both, or none


0 comments:

Post a Comment