CSS Control table border: CSS control border

Source: Internet
Author: User
The following is the program code


In this section we discuss how to use CSS to control the surrounding spaces and the setting of the border
Elements surrounding the space margin properties margin can be used to determine the surrounding space, if we want the entire page in
5em to the left but no space for the title
Body {margin:5em}
h3 {margin: -5em}
The H3 negative -5em offsets the space in body 5em.
In addition, we can use Margin-left, Margin-right, Margin-top, respectively,
and Margin-bottom to set left, right, top, and bottom spaces.
Space around the inside of an element padding
At first glance this nature looks like margin. In fact, between them there are
A big difference. The margin space is empty relative to the other elements.
The padding is a blank space around the element's perimeter and inside the content. In
For the following example, we use a background-colored table to make you notice this
A property
Table.pad {padding:5mm; Background-color: #ccefcc}
[Code]

Petersen is arrested in a modest apartment building in studio
CITY, Calif, which he had been sharing and three other people. The article link http://www.cxybl.com/html/wyzz/CSS/20120601/27371.html

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.