CSS properties (container properties)

Source: Internet
Author: User
Tags list of attributes
CSS This section I will introduce you to the padding properties. Let's take a look at the list of attributes for padding:

First we have to understand what is the padding distance, and what is the difference between it and the margin? Padding refers to the distance between the text border and the text.
This is not a bit difficult to understand, because the padding property and margin like, have a defined attribute: padding, so we give an example, to see what exactly is called padding distance, please look at the following figure:

The place where the red box is circled is the part of the fill distance that we see above. In fact, the effect of the above illustration is simply to add the following code to the margin of the body definition in the

Padding:1em 2em 3em 4em

As you can see from the above, the part of the red box tag belongs to the margin property at work.
The next section will introduce you to the border properties.



Related Article

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.