Simple div Hovering Effect
Introduction
This is a very basic technique that I've seen used a lot but never knew how to do. You'll find yourself using this for a vast number of CSS related projects as it adds a great little addition of depth to a website. Such effects can be achieved with Javascript, but if you're like me and don't like JS this is the trick for you.
The Code
The only code you'll ever need for any hovering effect you want to have on any element in your website, and how to use it:
This also works very well with lists, here's some example code to show you how. Obviously, customize this to suit your needs. This code will not work if you just copy-paste it in.
The values there are irrelevant, and I believe this works in most browsers. Don't quote me on it though!
297 Views