Sitefinity Blog Posting Image Margins

Posted by Community Admin on 04-Aug-2018 12:04

Sitefinity Blog Posting Image Margins

All Replies

Posted by Community Admin on 18-Sep-2012 00:00


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

Posted by Community Admin on 18-Sep-2012 00:00

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"

Posted by Community Admin on 18-Sep-2012 00:00

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.

This thread is closed