Saturday, 31 March 2012

Coding - Gradients

Most of my website is going to use CSS graidents for the design. I am using CSS as it is much more practical than image gradients and work on almost all modern browsers.
This was the code I ued on my navigation bar to give the effect of a dark to light green gradient:

In the code, you can see that the code "left" means that it is going from left to right, there fore making it a horizontal gradient. the 0% and 100% are the start and end points of the gradient, with the hex numbers being the colours.

No comments:

Post a Comment