In Internet Explorer 6, this pseudo-element fails if it’s not immediately followed by whitespace. This means that whitespace must appear between the pseudo-element and the declaration block, as well as between the pseudo-element and the comma, if the pseudo-element isn’t the last selector in a group of selectors.
I did not know this, Paul. I generally put the whitespace between the last letter of the CSS element and the bracket anyway, just to be OCD about it all but I didn’t know I could trigger one of IE6’s plethora of bugs by not doing so. Yay for being obsessive!
Thanks for the reply - however, it still doesn’t seem to work for me
blockquote { font:12px Georgia,"Times New Roman", Times, serif;width:600px;background:url(http://carmstatic.com/images/close-quote.gif) no-repeat right bottom;padding-left:18px;text-indent:-18px;padding-bottom:10px; }
blockquote:first-letter { background:url(http://carmstatic.com/images/open-quote.gif) no-repeat left top;padding-left:18px;font:italic 1.4em Georgia,"Times New Roman", Times, serif; }
I’m afraid its “minified” to try and comply with the new “YSlow” and “Google Speed Checker” add-ons for FF - to try and get as high-a-ranking as possible =))
I did a Ctrl F5 to make sure its using this CSS file, and it is - but still in IE its not working right :/)
Thanks for the reply. Just did that, and it starts working (2 of the 3 quotes show the " bit at the closing section) … but after a few seconds they just dissapear (leaving only the opening ones :/)
What version of IE are you referring to as IE6 seems fine for me now and looks fine on browsercam?
If it’s IE6 then are you using a stand-alone or the real thing?
Is there anything special you have to do to make the quotes disappear?
Quite often “haslayout” issue will make images disappear like that but usually they are 100% reproducible and I’m not seeing this my end. Unless I can reproduce the bug here it’s a bit like working in the dark.
I didn’t realise you could have different versions of IE working on a single PC? I use a program call IETester, but ideally would be better to have stand-alone versions to test with =)
Your computer needs to be able to handle another OS on it, so it’s not for the light machine.
I’ve heard the idea of having IE8 and using IE8’s compatability mode to “see” IE7… however I don’t know, does that really re-introduce Haslayout and all that?? Seems like that would make IE8 bigger than necessary?
Also dunno if Compatibility Mode also affect the JS engine used (wasn’t IE7’s different from IE8’s?).
If all of the above is true and compat mode really does everything native IE7 does then I’d totally consider downloading IE8 for VB2 and switching to compat mode to check IE7. Right now IE8 is on a whole other machine, here at work.
Yes I can see it now I was testing on ie6 and ie7 Ie6 was showing the bug I mentioned which is what I thought you were talking about.
The IE8 bug is interesting and even on your first link the final quote is missing in IE8.
I’ve done some testing and nothing seems to fix it although I have worked out what’s happening.
It seems that IE will only allow one image on that element and if you specify an image for the first-letter and an image for the element itself then the first-letter image is only displayed.
Strangely enough if you use the same image for both the first-letter and the element itself then the same image displays twice!
So a partial fix for IE8 would be to use a straight quote gif (e.g ") that you can use at the start and at the end using the same image. You could do that via conditional comments to let others have the better image.
Or the other alternative is to add an inner element so that you can hang one image on instead.