Help - Search - Members - Calendar
Full Version: Another convert line breaks posting
Movable Type Community Forum > Additional Resources > Tips and Tricks
MorValu
Without going into too much detail, my design has required that I set CSS padding on
CODE
<p>
tags - which works well until I place an
CODE
<img>
tag within the body of my blog. This also gets the padding applied which is not the desired effect.

I want to keep line break conversion active for the less technical users, but what can I do about these
CODE
<img>
tags?

Any ideas?

Thanks.
ndns
Would setting the padding for images contained within p tags cure your problem?

In your stylesheet:
CODE
img>p {
padding: 1px;
}
kristine
I don't believe that img>p will work in all browsers, but
CODE
p img {padding: 1px;}

may be more likely to. smile.gif

Kristine
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.