background preloader

CSS Gradients

Facebook Twitter

CSS gradient generator. Linear CSS Gradients that ANY Browser Can See | Web Design Dev. In the past, if you wanted to have an HTML entity to have a gradient background you created in image of a gradient and displayed it in the entity using the background-image attribute in CSS. With the evolution of browsers and CSS/HTML, this is no longer the case. In this tutorial we will learn how to use CSS to add a linear gradient to the background of entities. The Setup First, we need to decide how we are going to use the gradient. I suggest using the gradient as an enhancement. Keep in mind that some browsers will not display the gradient well or at all. Gradients can be applied to block elements such as DIV tags. Cool Gradient Goes here Applying the Gradient The Excellent – webkit Now, let’s add our gradient.

Webkit, namely Safari and Chrome, use the following CSS to render a linear gradient. This uses the webkit CSS for creating a gradient. Excellent! The good Firefox uses the Gecko rendering engine. This gives us great results as well. The Tolerable. Ultimate CSS Gradient Generator - GradientFinder - Convert your Images into CSS Gradients.