How to make a div glow with jquery

herre.mann picture herre.mann · Mar 17, 2013 · Viewed 14.3k times · Source

I wonder how to make a div glow in a specific color when the page has loaded.

<div id="glow" class="logo registrer"><a href="http://henricson.net/registrer.php" class="understrek">Registrer deg</a></div>

This is the div i want to glow. Thank you :)

Answer

Suits999 picture Suits999 · Mar 17, 2013

CSS3 can do that:

-webkit-box-shadow:0 0 20px blue; 
-moz-box-shadow: 0 0 20px blue;
box-shadow:0 0 20px blue;

Here's a JSFiddle that shows that it does, in fact, it works fine with me, check it out to see :)