• Resolved kfl99

    (@kfl99)


    I have inserted an image into the text editor block because I want the text to wrap the image. I want a border around the image and I can’t seem to do it. I can do it if the image is in its own image block using the edit image – style tab, however I can’t do that with an image inside a text editor block. Is there css I can add somewhere? I couldn’t find this issue in any other threads. thank you so much!

Viewing 1 replies (of 1 total)
  • Yes, you can use the text editor’s “text” tab to add an inline style declaration to your img tag in addition to a built in class that floats the img to allow it to become inline with the text. Something like this should work:

    <img src="..." class="alignleft" style="border: 2px solid #555; margin: 0 25px 25px 0"/>

    This would result in a float left, with the image having a border of 2px and a 25px margin to the right and to the bottom of the image.

Viewing 1 replies (of 1 total)
  • The topic ‘image border around image within text editor’ is closed to new replies.