grateful grateful - 4 months ago 28
CSS Question

Modify CSS of element with no class or id by element parent's selector

<span class="avia-menu-text"><img src="data:image/png;base64,etc..." title="ESP (es_ES)" alt="ESP"></span>

I have a base64 image in a Wordpress theme (a language flag) that is rectangular and I want to make it circular. I can't locate the origin of the base64 image so I can't modify the data. The parent has a class name, but the image does not.

In CSS I have tried

img<.avia-menu-text{ border-radius:100% }

Any suggestions - ideally using only CSS and definitely without JQuery?


You have inverse your selector.


.avia-menu-text img{