⊗mkPmFlPWr 197 of 250 menu

Floating in CSS

Let's say we now have two divs with the class parent. Each of them contains a small text, and the first div contains an image that has the float property set to left.

As you already know, in this case the picture will fit on the second block:

<div class="parent"> <img src="img.png" alt=""> text </div> <div class="parent"> text </div> .parent { border: 1px solid red; } .parent img { float: left; }

:

Let's look at how to avoid such overlapping or wrapping in the next lessons.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline