Unwrapped row

Although, in the picture above there are two images (each image is inserted into the div with a width of 50% so that it is stuck) and a text which should be placed under the shorter block due to other style settings applied both divs, it is observed that the text “fall” between the two images “dripping” letters in cascade.

In order to prevent such a situation, in the style applied to the text, we also introduced the :before selector where we have the following parameters:

.txt_site:before {
display: block;
content: ' ';
clear: left;
}

Therefore, the new situation is shown in the following figure.

Author: Ovidiu.S

I am quite passionate about this professional area as if I know something - no matter how little - I want to share it with others.

Leave a Reply

Your email address will not be published. Required fields are marked *