Put border around an image
-
I want to add a black border to an image. I clicked to edit the html for the image. The style statement for the image is
style=”width:400px;height:auto” (with no semi-colon after auto).
I edited that to
style=”width:400px;height:auto;border-style:solid;border-width:3px;border-color:black;”/> (with and without semicolon at the end after black)
WP rejects this. “Block contains unexpected or invalid content.”
According to what I read at w3schools, this should be correct.
I tried various iterations in the Additional CSS box, but WP rejected those as well.
How do I put a border around this particular image on this particular page?
The topic ‘Put border around an image’ is closed to new replies.
