There seems to be some kind of weird JS overlay thing going on there, and I suspect it is messing things up for poor old IE. I would suggest just removing all that stuff, as it seems to have no purpose anyway.
I doubt it should be a document.write - that CSS would make little sense as an entire web page and the first document.write call after the page finishes loading sharts creating a new web page to display once the last document.write has finished.
That was my initial thought as well but searches indicate that stuff has something to do with the IE determines the nth element (or something like that). I’m not hugely comfortable with it because I don’t understand it fully but the same stuff is present and works fine in IE 7 and IE 9.
I thought this line of script had something to do with the Contact Form 7 plugin, which we are using. The wpcf7-submit was my first clue…then I found out CF7 loads on every page by default, even if there is no CF7 form on the page so I was even more suspicious.
But, alas, Miss Marple I am not…after much searching and finally uninstalling the plugin, I discovered this line of script was hardcoded in the theme we are using. No idea why that would be the case but I finally managed to remove it.
No more syntax error but the disappearing image problem still exists.
The following property is causing the lady’s image to disappear in IE8:
max-width:100%;
Deleting it will help the social media buttons, too; but not cure them. They still have a bit of an alignment problem.
There may be side effects that I have not realized, so test thoroughly (this is the base.css, after all). Just thinkin… if other pages use this property to resize fluid images, you may be better off to override this property on the home page.
ronpat you rock! This one was driving me crazy! After you pointed me in the right direction I found a very specific description of the problem:
After a bit of trial and error it turned out that if an image has a max-width specified through CSS, a width attribute in the HTML, and is the child of a floated element that has no explicit width set,
IE8 makes its width zero.
Problem fixed by adding the following to custom.css
.msie8 a img { max-width: none; }
and ronpat - you were right about the social media buttons too…did I mention you rock! Thanks so much for the help!
You can probably combine it into a single CSS rule but grouping selectors is not my strong point! If it works and I ever make it to the UK, hook me up with a good deal on one of those awesome tents!
The solution suggested by pantspress falls short because it is not specific enough. If applied literally and without considering the design of your page, it also affects the two “polaroids” below it… as you see.
Please see
for a specific inline solution that I posted almost 15 hours ago.