Friday, February 18, 2011

How to put a border to div.

Yesterday, in my code I was not happy with putting 2 divs, one inside an another to mimic the mouse hover effect. I will try and find something that could be done with 1 div. I will post the code once I find the solution.


****Update ****

The code is a lot cleaner and with one div I could get the job done. You don't need 2 divs to mimic the nice effect.

http://jsfiddle.net/vijayphani/Pd3GN/10/


No comments:

Post a Comment