Sitefinity Blog Posting Image Margins
Hello Telerik Team,
In the blog posts when adding an image, we have to manually set the image margins using <
img
src
=
"xxx"
style
=
"margin:8px;"
> and what we want to do is add a CSS Attribute to this so that I can control the style via a CSS Class file.
I have attched snap for set Image margin in red color.
Please assist.
Thanks & Regards,
Anal Kukadiya
anal.kukadiya@boxerproperty.com
Hi Anal,
The <img> tag supports the following HTML attributes - hspace & vspace. However they work for both sides at the same time - so hspace will affect the left AND right spacing. Or you could always apply a custom attribute like this - style="margin-top:5px"
You can configure the editor to allow you to add custom classes to things...you could then apply CSS to style those elements however you want. Check out this post about how to enable the ApplyClass tool.