Image Border | WordPress.org


Hi,

I just want to add a simple image to a border. But it seems with Gutenberg this is not so simple. I have an image that is left-aligned with text on the right. If I add custom CSS to create a border for that image, it seems to apply the border to the whole block (and not the image), and then only at the top.

Alternatively, if I just add to the IMG tag within the HTMl (e.g.”style=border: 1px solid #cecece”), then WP doesn’t like it, and asks me to resolve the code or convert to HTML (the latter works, but from that point on you have to deal with code instead of WYSIWYG, so it’s not ideal).

Any suggestions? Why is such a simple thing causing so much hassle?

Thanks,

Gareth.



Source link