CSS Divider Lines

Source: Internet
Author: User

A single label implements a divider line:

. demo_line_01{

    0;                  Center;}

Pros: Simple Code

Skillfully use the background color to achieve the separation line:

. demo_line_02{

    1px;         Center;}. 20px;} 

Advantages: Simple code, adaptive width

Inline-block Implementing Divider Lines:
.demo_line_03{Width600px;}.Demo_line_03  b{background:  #ddd; margin-top: 4PX; display: inline-block; width: 180px; height: 1PX; _overflow: hidden; vertical-align: middle;}. demo_line_03 span{display: inline-block; width: 220px; vertical-align: middle;}        

Pros: Text can be multiple lines

Floating Implementation Separator lines:
. demo_line_04{    width:600px;}. demo_line_04{    1;}. hidden;}     

Advantages: NUN

To implement a separator line with characters:
class="demo_line_05"> ———————————<span> Small separator line characters for </span> ————————————  </div>       
. demo_line_05{    -1px;    #ddd;}. margin:20px;}    

Advantages: The code is simple above the description of the separation line, perhaps there are other more appropriate wording, look at the environment picking it!

Reference: http://www.daqianduan.com/4258.html

CSS Divider Lines

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.