A
A
Andrey2017-09-03 14:59:15
css
Andrey, 2017-09-03 14:59:15

Round image with style?

I am designing the html version of an email. There is the following code: I can't add style to img itself, since it is displayed through the [img] shortcode. Tried rounding like this:
<span><img src="..." /></span>

<span style="border-radius: 50%;"><img src="..." /></span>

but didn't work :(
Question: is there any way to round the image without working directly with the img itself?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
Lumore, 2017-09-03
@Lumore

<span style="border-radius: 50%;overflow:hidden"><img src="..." /></span>

M
Maxim Timofeev, 2017-09-03
@webinar

use css and classes rather than style
html:
css:
.round > img {border-radius: 50%}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question