Talking about CSS styles (border, background, table)

Source: Internet
Author: User
Tags border color dashed line

Border usage

border: Border. The properties are: Border-width,border-style,border-color.

1 <  ID= "D1">2    height 200, broadband 200, border color red border.  3</div>
1 #d1 {2  width:200px; 3 height:200px; 4 border:1px solid red; 5    }

Border-width: Represents the thickness of the border. Border-style: Border style. Solid solid line. Dashed dashed line. Dotted: Dot line. Border-color: Border color.

Examples Show

1 #d1 {2  width:200px; 3 height:200px; 4 border:2px dashed red; 5    }

Web Background (background)

Page background Settings properties are: Background-color: Background color. Background-image: Background image. Background-position: The position of the background image. Background-attachment:fixed: Specifies whether the background image is fixed or scrolls along with the rest of the page.

To illustrate:

1 <  ID= "D2">2    Background small icon set 3</  div>
1 #d2{2 width:14px;3 Height:14px;4 margin:0px;5 padding:0px;6 Background-image:URL (.. /image/iconnew.png);7 background-position:left-50px;8 background-attachment:fixed;9}

Form (table)

The borders are merged into a single border.

1 Table {2width:300px; 3 height:400px; 4 border:1px solid #ccc; 5 border-collapse: collapse; /* Merge Border */ 6 }

Talking about CSS styles (border, background, table)

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.