How to remove this extra indent at the very bottom, under the image? I read the article on Habré:
Probably, many, when html-layout, met the "bug" when, placing> in a block two images in a row, between them there is an interval> about 3-5 pixels. This effect is present not only in the hot>> favorite IE6, but also in other browsers. Most solved it with tambourines - Doctype substitution, removing extra padding in the html file and so on.
Starting to look for a solution to the problem on the Internet, including on the habr, I realized that there were many questions about this, but most did not find the correct answer. As a result, it turned out that this is not a bug at all. IMG is an inline element, and therefore the vertical-align property is applied to it. In browsers, this property is set by default (on most baselines, if I'm not mistaken).
It is enough to apply vertical-align: bottom to the image and there will not be indentation at the bottom. In other cases there will be ambiguity, and browsers will behave at their discretion. https://habrahabr.ru/post/51140/
BUT this technique and all the others do not work, if the methods except the negative margin remove this indent?
* { margin: 0; padding: 0; } .clear, .clear:after { content: ""; display: block; clear: both; } div { width: 30%; border: 1px solid #888; margin: auto; } div p { width: 98%; margin: auto; } img { width: 35%; float: left; vertical-align: baseline; } <div class="clear"> <img src="http://i1.mywishis.in/s/i/wishes/23/11/3/230x0_2311332646a15ea26e2b7172af891d87___jpg____4_1af7f70b.jpg" alt="img"> <p>Nulla quis lorem ut libero malesuada feugiat. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Vivamus suscipit tortor eget felis porttitor volutpat. Vivamus magna justo, lacinia eget consectetur sed, convallis at tellus.</p> </div> for training: http://codepen.io/Geyan/pen/WxBQaK?editors=110
floatapplied to the image, which makes it a block "outside" the text. And you need to decide whether to play with the size of a picture or the height of a line of text (line-height) - cyadvert