Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm using the default WordPress gallery and I'm encountering a bug in IE. It looks like the first gallery image floats to the right or is placed to the left of something else. This only happens in IE8 & 9 (yes, it somehow works in IE7!).

I've tried removing the caption from the last gallery item. I've also tried moving the large image the the end and neither have any effect. Perhaps this is more of a CSS issue than a WP issue.

Here's the live site.

screenshot

share|improve this question
I wish this wasn't closed as off topic. This problem could easily be code automatically generated from WordPress. – BFTrick Nov 28 '12 at 17:09

closed as off topic by Michael, brasofilo, Johannes Pille, toscho Nov 28 '12 at 6:39

Questions on WordPress Answers are expected to relate to WordPress within the scope defined in the FAQ. 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 closed questions here.

1 Answer

You could use the css psuedo :first-child to combat this.

e.g.

.gallery-item:first-child {
 // css code here
}

Not seen this happen personally, so could be something to do with your theme or a plugin which is adding it's own code into the gallery (or a similar named element).

share|improve this answer
but then what happens in good browsers that are lined up correctly? – BFTrick Nov 28 '12 at 17:08

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