Try our conversational search powered by Generative AI!

Adding a css class to an image in the editor

Vote:
 

Hi,

 

I'm trying to get css classes to appear in the css dropdown in image properties.

I've used to method in the css file:

.right

{            
    position:relative;
    EditMenuName: Right;
    float:right
}

The class appears in the editor's css dropdown, but not the image property.

Any ideas anyone? I'm using Version 5 SP2.

 

Thanks 

 

 

#25675
Oct 30, 2008 19:00
Vote:
 

Hi,
you need to define img.right as class name. The only way EPiServer can make out where your class is applicable is by defining which type of element that is affected by the class.

img.something to get the "something" class to appear in image css classes, td.something to get it into table cell properties dropdown.

/Regards
Henrik

#25682
Oct 30, 2008 20:33
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.