
I Hate Internet Explorer
I think you know my feelings for IE, but I had a reader point out to me that the CSS ::selection method on my site was working in IE8.
Check out Meighen’s question on my CSS Selection post..
Internet Explorer has no support for CSS Selection
And somehow the code is working, but only on one sentence, just like the one above in red. Here is the HTML for the sentence above;
<p style="color: #ef2a0f; font-weight: bold;">Internet Explorer has no support for CSS Selection</p>
If you are using Internet Explorer 8 then you can highlight the line above and see that it changes to blue text while keeping the white background; which is my ::selection setting. And you will also notice that is uses the default setting for the rest of the page. Weird…
Make ::selection work in IE8
After running some tests (only a couple, I really don’t like spending too much time in IE) I noticed that this would only work when your text color started with an E in the hex code.
Pretty interesting..
So I guess if you had a dark website and used a light text color like #E0E0E0 then you could get your ::selection to work in IE8. That is if you even care enough about IE…
god. i just fu***** hate IE
Don’t we all Andy! :D