Background gradient Tutorials

Quick Tip: Understanding CSS3 Gradients

Creating an image only for the purpose of displaying a gradient is inflexible, and is quickly becoming a bad practice. Unfortunately, at the time of this writing, they very well might still be required, but hopefully not for much longer. Thanks to Firefox and Safari/Chrome, we can now create powerful gradients with minimal effort. In this video quick tip, we'll examine some of the differences in syntax when working with the -moz and -webkit vendor prefixes.


While Mozilla and Webkit generally adopt the same syntax for CSS3 properties, they unfortunately don't quite agree when it comes to gradients. Webkit was first to embrace gradients, and uses the following structure:

/* Syntax, taken from: */ -webkit-gradient(,

[, ]?,

[, ]? [, ]*) /* In practice... */ background: -webkit-gradient(linear, 0 0, 0 100%, from(red), to(blue));

Don't worry if your eyes gloss over at that syntax; mine did too! Just note that we require a comma-separated list of parameters.

  • What type of gradient? (linear)
  • X and Y axis coordinates of where to begin. (0 0 - or left-top corner)
  • X and Y axis coordinates of where to conclude (0 100% - or left-bottom corner)
  • What color to begin with? (from(red))
  • What color to conclude with? (to(blue))


Firefox, which implemented gradient support with version 3.6, prefers a slightly different syntax.

/* Syntax, taken from: */ -moz-linear-gradient( [

|| , ]? , [, ]* ) /* In Practice */ background: -moz-linear-gradient(top, red, blue);

  • Note how we've placed the type of gradient, linear, within the vendor extension.
  • Where should the gradient begin? (top - we could also pass in degrees, as in -45deg)
  • What color to start with? (red)
  • What color to conclude with? (blue)


What if you don't need a 100% gradient from one color to another? This is where color stops come into play. A common design technique is to apply a short and subtle gradient, like this:

Note the subtle off-white to white gradient at the top.

In the past, the standard implementation was to create an image, set it as the background of an element, and set it to repeat horizontally. However, with CSS3, this is a cinch.

background: white; /* fallback for older/unsupporting browsers */ background: -moz-linear-gradient(top, #dedede, white 8%); background: -webkit-gradient(linear, 0 0, 0 8%, from(#dedede), to(white)); border-top: 1px solid white;

This time, we set the gradient to conclude at 8%, rather than 100%, which is the default. Note that we're also applying a border top to add contrast; this is very common.

More about Background gradient Tutorials

NeriumAD will reduce and fade stretch marks : )

by creativspirit

See the amazing Real Results in Before/After stretch mark photos and Others on my fBook bizpage: Nerium Me Beautiful
(I can't post images here yet, am a new forum member)
NeriumAD is made from a patented extract of the Nerium Oleander plant which was discovered in Biochemical research for treating skin cancer. It is a non~toxic, non~comedogenic (won't clog pores), Paraben~free, Gluten~free, Cruelty~free night treatment Anti~aging skin cream ideal for all skin types. Consistently 20~65%+ effective on Fine lines and Wrinkles, Hyper~pigmentation, Skin texture, Aging and Sun~damaged skin, Stretch marks and Acne

CorelDRAW X7 review: Customizable features make this robust design program ..  — PCWorld
.. purchase, as well as a $25 monthly subscription. People miffed by Adobe's wholesale move to subscriptions will find a great alternative here. ..

Galaxy 61 Delivers Show Open for VH1's 'The Fabulous Life  — Animation World Network
VHI recently called upon Galaxy 61 to create a show intro for the new 2014 season of The Fabulous Life, the hit series that reveals the extravagant places, possessions and pastimes of pop-culture's most famous celebrities. The Brooklyn-based ..

Hunterdon County Polytech students bridge the gap thanks to local Rotary Clubs  — Hunterdon County Democrat
This year's Job Fair, on March 25, attracted the Dave Gansfuss Allstate Agent for an agency logo; G&H Publishing and author Katherine Kurz for children's book illustrations; Artiste Salon for a new logo, brochure and social media materials; St.


Glasses Shining Effect In Photoshop?

There is an effect where you can make your glasses shine like light is shining on them, how do I do that for a photo?

To begin this tutorial, we'll first give ourselves a nice background gradient. Now while most gradients are two-color, in Photoshop you can actually make much more complex gradients by clicking on the Gradient icon in the top left. You'll get a panel showing the gradient and you can add more colors to it. In this case, I've used three colors to make a gradual change from green to a set of blues.
Multi-color gradients can make for a stunning background. I've used a Radial Gradient and centered it to the bottom right.
The colors I've used are:

Related Posts