CSS Multiple Texting

I want <h2> underline and blink at the same time.
Is there a way to achieve this by changing only the CSS style in <h2> ?

For example:

 h2 { text-decoration: underline, blink; } 

or

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

none of the above work

If such a method does not exist, what is the fastest / easiest way to do this?

+9
source share
2 answers

You need to select them separately:

 text-decoration: underline overline line-through; 

http://jsfiddle.net/PamjT/

+20
source

The easiest way is to set border-bottom to your h2:

 h2 { border-bottom:1px solid black; text-decoration:blink; } 

Please note that blink is not supported in IE, Chrome and Safari

0
source

All Articles