WordPress Posts aren't adjusting to images?
Asked by
drClaw (
4452)
October 5th, 2010
I’m helping a friend with a blog he is starting and for some reason I can’t get the posts on the main page to adjust to the images. The blog is http://www.swagspot.com/.
I’ve been looking at it for an hour, but need to get back to work and was hoping some Fluther-ites with CSS Jedi skills could lay fresh eyes on it.
Any help is appreciated & thanks in advance!
Observing members:
0
Composing members:
0
6 Answers
Looks like it’s because your images are “float“ed. Try:
.post {clear: both;}
to have the posts under previous images.
@phaedryx :: That was my first thought. But I tried it in Firebug and it didn’t completely fix the problem. But it did help.
I’m assuming this is the bug that needs to be fixed.
clear: both produces this. It is better but not ideal. I tried a bunch of shit and failed.
Thanks for the attempt guys. I’m going to give it another go when I get home from work and hopefully I can figure this crap out… goddamn WP themes.. grumble grumble
I also added…
.post img {margin-bottom: 10px}
…which gave the following post some extra padding, but the damn line in .post is killing me.
Making your posts longer is another solution. Maybe that means writing more, maybe it means breaking things up into more paragraphs. Depends on the post. But it works.
@theichibun That was def the easiest solution.
I actually ended up changing .post {boarder-bottom: 1px…} to {boarder-top: 1px…} & then amended the padding to look the way my buddy wanted it to look. Viola! it is fixed.
Answer this question
This question is in the General Section. Responses must be helpful and on-topic.