Sonny
Sonny

Reputation: 8326

Image Margins in CKEditor

The Image properties dialog has HSpace and VSpace settings. When I go to the advanced tab, I can see that it's actually setting the margin styles. I want to be able to set each margin individually. For example, a right-aligned image would have a left and bottom margin, but not top or right. Is there a way to allow for setting each of the four margins individually?

Upvotes: 1

Views: 1268

Answers (1)

Diodeus - James MacFarlane
Diodeus - James MacFarlane

Reputation: 114377

Using CSS in preferred over inline styles. You can create your own styles and apply them to your image using CK's stylesheets. Note that CK has a separate stylehsheet for the editor itself as well as one for the contents of the editor pane.

Upvotes: 1

Related Questions