Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Kyrylo Zvyagintsev3,640 Points
cross-browser ::befor and ::after
I'm sorry about my question. but anyway:
in the great lesson (https://teamtreehouse.com/library/css-foundations/advanced-selectors/pseudoelements-before-and-after) there was css code:
does it work on old browsers? (especialy "The Great" IE)
Thanx a lot for any help
Sebastian Wilson15,710 Points
It looks like it works for IE 8 "In Windows Internet Explorer 8, as well as later versions of Windows Internet Explorer in IE8 Standards mode, only the one-colon form of this pseudo-element is recognized—that is, :before." http://msdn.microsoft.com/en-gb/library/ie/cc304078(v=vs.85).aspx
Older Internet Explorer versions are a real pain, in IE you can press F12 which will get you into developer mode. Once your in there you can change document mode to target the IE version you wish e.g. IE7!!! And see how your page is getting on.
There are different ways to get your work to look right in different browsers-
And to target different style sheets for browsers I use the following example for IE 7 and lower
<!--[if lt IE 8]> <link rel="stylesheet" type="text/css" href="ie7-and-down.css" /> <![endif]-->