V
V
vasIvas2016-01-18 13:16:44
css
vasIvas, 2016-01-18 13:16:44

How to make image not cut off at border-radius?

How can I prevent the bottom image from being cut off? codepen.io/anon/pen/MKOYLg?editors=110

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kirill Kublyakov, 2016-01-18
@vasIvas

This is because img is an inline-block element.
Set for img display: block;
Or for .container

font-size: 0;
line-height: 0;

PS Your .container height was 4 pixels more than the img height.
To understand why this happens, read the article css-live.ru/articles/zagadochnye-otstupy-mezhdu-in...

A
Alexey Strukov, 2016-01-18
@pm_wanderer

Remove Height from container lanes.
Overflow hidden there also seems to be not needed in another container

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question