0

I know IE8 only supports :after and not ::after.

I thought I could solve it in one line.

Here is the CSS:

E:after, E::after{ ..... }

But it doesn't work in IE8.

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
fire790620
  • 49
  • 8

2 Answers2

4

IE8 is behaving as expected and discarding the entire ruleset because it doesn't recognize double colons. See this slightly related answer. This is not buggy behavior.

If you need to support IE8, just use single colons. That's what you're supposed to do. :before with a single colon is guaranteed to work on all browsers and you can rely on it thanks to IE8.

E:after { ... }
Community
  • 1
  • 1
BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
0

you can place code for IE8 as this.

<!--[if IE 8]>
<style>...</style>
<![endif]-->
ma_dev_15
  • 1,176
  • 7
  • 18