CSS multiple text-decoration

zakkak picture zakkak · Mar 27, 2012 · Viewed 9.7k times · Source

I want to have the <h2> underlined and blinking at the same time.
Is there any way to achieve this modifying only the CSS style of <h2>?

For instance:

h2 {
  text-decoration: underline, blink;
}

or

h2 {
  text-decoration: underline;
  text-decoration: blink;
}

none of the above works

If there is no such way what is the fastest/easiest way to do it?

Answer

powerbuoy picture powerbuoy · Mar 27, 2012

You need to space separate them:

text-decoration: underline overline line-through;

http://jsfiddle.net/PamjT/