⊗mkPmFlPH 195 of 250 menu

Height of float parent in CSS

Although floated elements do not extend their parent in height, we can set the height ourselves using the height property. Let's do this:

<div> <img src="img.png" alt=""> </div> div { height: 100px; border: 1px solid red; } img { float: right; }

:

byenru