Using gradients to achieve the effects of books

Source: Internet
Author: User

If the middle part is a bit like a shadow, the effect is to use the gradient in the CSS3 (gradients) to achieve


A div to the left and a div to the right.


The left one has a white background.

The div on the right sets the gradient properties: Background:-webkit-linear-gradient (left, #dddddd, white);/*safari 5.1-6.0*/

Background:-o-linear-gradient (right, #dddddd, white);/*opera 11.1-12.0*/

Background:-moz-linear-gradient (right, #dddddd, white);/*firefox 3.6-15*/

Background:linear-gradient (To-right, #dddddd, white);/* standard notation (must be placed at the end) */

Description: Linear-gradient is a linear gradient. The last background in to-right refers to the #dddddd from the left to the

Note: IE9 and its lower versions do not support gradients.

Using gradients to achieve the effects of books

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.