CSS simple gradient background for Firefox browser

Source: Internet
Author: User
Background:-moz-linear-gradient (left, #3992D0, Rgba (227, 157, 168, 0.5));

Left to right first parameter;


Top from top to bottom;


The second parameter is the color at which the gradient begins;

The third parameter is the color and transparency of the end of the gradient.


The so-called Rgba:

R: Red value. Positive integers | Percentage

G: Green value. Positive integers | Percentage

B: Blue value. Positive integers | Percentage

A:alpha transparency. Value between 0~1.


The first three values (red-green-blue) range from 0 to 255 integers or percentages between 0% and 100%. These values describe the amount of red, green, and blue primaries in the expected color.

If you want to set pure red, then set the red parameter full, that is 255, green, blue set 0.


The fourth value, alpha, develops the transparency/opacity of the color, which ranges from 0.0 to 1.0.

This article is from the "Kurol.blog" blog, make sure to keep this source http://kurol.blog.51cto.com/11433546/1918887

CSS simple gradient background for Firefox browser

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: info-contact@alibabacloud.com 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.