Search code examples
csscss-selectorscross-browserinternet-explorer-7css-content

Can CSS Content Property work in IE7?


I came across with CSS content property, which it is able to add text into element.

for example:

.class:after{
   content: "testing";
}

Unfortunately this CSS property only working in IE8 only with !DOCTYPE is defined.

Is there anyway or workaround that we can make this to be working in IE7 too? without using JavaScript or jQuery.


Solution

  • Nope, IE7 does not support it

    Only chance is to use Javascript/Jquery.