WordPress: in-line style for images (margin)
I am using Zemanta on WordPress. When including Zemanta images some in-line style is used like in div class="zemanta-img" style="margin: 1em; display: block;". I would like to have NO margin. How can I achieve that without manually editing HTML after including Zemanta image in a post.
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?Take a look here for example CSS in that direction: http://getsatisfaction.com/zemanta/to...
The company says
this answers the question
-
Inappropriate?But, doesn't in-line CSS over-write CSS defined in style.css? Looks like there is then no other way than changing forced in-line style after insertion?
-
Inappropriate?As Tomaz rightly points out, inline CSS is normally more binding than those in style sheets, but using ! important at the end of CSS rule in style sheet might have a precedence over inline ones.
There's another option in case it doesn't, which is to open Zemanta preferences and choose XHTML instead of default HTML. This will remove inline CSS, but you will have to style all content inserted by Zemanta yourself, because it strips ALL our CSS. -
Inappropriate?Marko - XHTML made all the difference. Now I have spacing on my leftalign images so that the text does not run into it. Thanks.
I’m thankful
Loading Profile...





EMPLOYEE