0

The css code is this:

div.quote:before {
  content: 'before';
}
div.quote:after { 
  content: 'after'; 
}

Unfortunately, it doesn't work with IE 6 and 7. How can I solve it? Maybe with expression?

Kara
  • 6,115
  • 16
  • 50
  • 57
Danny Fox
  • 38,659
  • 28
  • 68
  • 94
  • IE6 was officially marked as deprecated by Microsoft in January 2012. – noob Feb 25 '12 at 09:41
  • 1
    similar to: http://stackoverflow.com/questions/4181884/after-and-before-css-pseudo-elements-hack-for-ie-7 and http://stackoverflow.com/questions/4844687/css-before-after-selectors-in-ie-6-7 – Joseph Feb 25 '12 at 09:42
  • May I know why you removed the duplicate link? – BoltClock Feb 26 '12 at 15:40

1 Answers1

-3

you may have a look at http://www.quirksmode.org/css/contents.html

neither :before and :after, nor content, are supported css selectors and properties for css in IE7 and before..

you might achieve a similar effect with javascript though

jakobluettgau
  • 293
  • 1
  • 6