HTML CSS Relative units

Source: Internet
Author: User

p{
Background:grey;
Color:white;
font-size:0.5in;
Height:2em;

width:50%;
}

Height:2em means that the height shown on the screen is twice times the size of the font

font-size:0.5in: The font size of HTML is set to 0.5 inches, which is the absolute value

width:50% width of the browser 0.5

CSS relative lengths can also be used more flexibly, such as Width:calc (80%-20px);

Use of CSS angles

. image_test_1,. image_test_5 {
-moz-transform:rotate ( -5DEG);
-webkit-transform:rotate ( -5DEG);
-o-transform:rotate ( -5DEG);
Transform:rotate ( -5DEG);

/*

-o-transform:/* Opera Browser */

-webkit-transform:/* WebKit Kernel Browser */

-moz-transform:/* Firefox browser */

*/
}

HTML CSS Relative units

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.