U
U
unlik2018-03-06 04:08:24
css
unlik, 2018-03-06 04:08:24

How to round images?

Why if you take such a piece of html code

<div class="reviews__avatar">
    <img src="img/feed-photo-1.jpg" alt="" class="reviews__avatar-pic">
</div>

and apply css to it
.reviews__avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

then the images are not rounded?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander null, 2018-03-06
@snikes

or
.reviews__avatar{
overflow: hidden;
}

D
danilstep, 2018-03-06
@danilstep

Are you setting the border radius without specifying the border itself? And how do you think it should work?
Just specify the color width and border style.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question