Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I've noticed a problem I have with images in my posts: they seem to go unnoticed to my CSS.

For example, I have a span tag that is adding a 100px margin to the top of itself under the last paragraph in each post.

But when an image is present the span tag seems to ignore the image as part of the paragraph content. There is no 100px margin created.

I'd usually say this is a CSS problem... but I think it may be a WP problem. Any thoughts?

Website

share|improve this question
add comment

closed as off topic by Milo, t31os, kaiser, Chip Bennett, toscho Apr 7 '12 at 20:44

Questions on WordPress Development Stack Exchange are expected to relate to WordPress within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 1 down vote accepted

It's because you've floated your image on line 745 of your CSS.

You've cleared the span, but the margin property still won't if there's a floated element above...

Change the margin to padding, that should fix it..

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.