The use and definition of the Css:border-spacing property

Source: Internet
Author: User
The Border-spacing property in CSS acts as: Specifies the distance between adjacent cell borders.

Border-spacing attribute Instance

To set border-spacing for a table:

Table  {  border-collapse:separate;  border-spacing:10px 50px;  }

Border-spacing Definition and usage

The Border-spacing property sets the distance between the borders of adjacent cells (for border detach mode only).

Note: Some versions of Internet Explorer do not support this property.

Description

This property specifies the distance between the cell boundaries in the delimited border model. In the specified two length values, the first one is the horizontal interval, the second is the vertical interval. This property is ignored unless Border-collapse is set to separate. Although this property applies only to tables, it can be inherited by all elements in the table.

Grammar:

Border-spacing:length | | Length

Parameters:
Length: A value consisting of a floating-point number and a unit identifier. cannot be negative. See Length Units


Description
Sets or retrieves the spacing between the rows and the borders of a cell when the table border is independent (for example, when the Border-collapse property equals separate).
When you specify only a length value, this value is used for horizontal and vertical spacing. When all two length values are specified, the first one is used for horizontal spacing, and the second is for vertical spacing.
Currently IE5.5 does not support this property.
The corresponding script attribute is borderspacing. Please refer to the other bibliography I have written.

Example:

Table {border-collapse:separate; border-spacing:10px;}
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.