Adding Background Gradient in CSS

Today with CSS3, you no longer need a background image for gradients. You can use CSS to add a gradient to the background of some elements on your page. For ex.: change the color hex values ("84c8d7" and "327fbd") to the gradient color you need.

[View All Snippets]
Show Plain Text »
  1. <style>
  2. .grad{
  3.   background: -webkit-gradient(linear, left top, left bottom, from(#84c8d7), to(#327fbd));
  4.   background: -moz-linear-gradient(top, #84c8d7, #327fbd);
  5.   background-image: -ms-linear-gradient(top, #84c8d7 0%, #327fbd 50%);
  6. }
  7. </style>
  9. <div class="grad">This is a DIV with gradient background.</div>

This is a DIV with gradient background.
Another DIV with gradient background.
Create Your Free Account
Please remember that this information is essential to use our services correctly.
After creating the account you will be able to download all of our FREE products.
Fields marked with * are mandatory

Please send me information about updates, new products, specials and discounts from ApPHP!
We recommend that your password should be at least 6 characters long and should be different from your username/email. Please use only letters of the English alphabet to enter your name.

Your e-mail address must be valid. We use e-mail for communication purposes (order notifications, etc). Therefore, it is essential to provide a valid e-mail address to be able to use our services correctly.

All your private data is confidential. We will never sell, exchange or market it in any way. Please refer to Privacy Policy.

By clicking "Create Account", you are indicating that you have read and agree to the ApPHP Terms & Conditions.

Quick Registration with: Facebook / Google