How to set the dotted border in html _ HTML/Xhtml _ webpage Creation

Source: Internet
Author: User
CSS style and HTML Tag elements are used. To add a border dotted line to different html tags, we select several common labels for alignment and set the border dotted line effect. 1. Common html tags: p tag spanullitabletrtd2 and the CSS attribute word borderwidthheight3. Implement dotted-line CSS. border is the border attribute. If CSS styles and HTML Tag elements are used

To add border dotted lines to different html tags, we select several common labels for alignment to set the border dotted line effect.

1. Common html tags

P tag

Span

Ul li

Table tr td

2. Examples use CSS attribute words

Border

Width

Height

3. Implementation of dotted-line CSS

Border is the border attribute. To implement the border effect of an object, you must set the border width, border color, and border style (solid line or dotted line)

Border: 1px dashed # F00: Set the border style width to 1px, dotted line, and dotted line to red.

4. instance description

We set the same width, height, and border effect for the preceding labels.

5. Complete HTML code:

 
  1. The dotted line of the html border demonstrates www.pcss5.com
  2. P box

  3. Span Box
    • Ul li list
    • Ul li list
  4. Table Table 2
    Data Data 2

The above example sets the same style for different tags in html, including the same border dotted line.

6. browser Effect

Border dotted line effects for different html tags

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.