How To Create A CSS Gradient Background Without Using An Image
Sign in

How to create a CSS Gradient Background without using an Image

Web Developer and Web Designer
See interview of Syed Zoheb Sumair
The One thing that is nice is that we now have the ability to create gradients in CSS itself without having to use an image.

Use of gradient colors is not only common in images but also lots of Website use this technique to improve their layout design. Although it is a normal practice to use images as  background of a Webpage but we can also combine two colors in CSS to make gradient color look without using an image.
With the help of gradient coloring we can make our website look more beautiful. There is not a particular CSS property that allows to make gradient color that display in all commonly used browsers. But there are some specific moz and webkit CSS property that allow us to make a gradient color and also we can cover internet explorer browser by using using its filter property. Below we provided a code example of creating a background gradient color without any image. You can put the color values according to your design.

body{
background: #008800;background: -moz-linear-gradient(top, #358F41 #EF3B64);background: -webkit-gradient(linear,  left top, left bottom, from(#358F41), to(#EF3B64);filter: progid:DXImageTransform.Microsoft.Gradient(  StartColorStr='#358F41', EndColorStr='#EF3B64', GradientType=0);
}

 

For more Stuff visit: http://zohebsumair.blogspot.in/

start_blog_img