A single label implements a divider line:
Click here to see the example show
. demo_line_01{ 0; Center;}
Pros: Simple Code
Skillfully use the background color to achieve the separation line:
Click here to see the example show
. demo_line_02{ 1px; Center;}. 20px;}
Advantages: Simple code, adaptive width
Inline-block Implementing Divider Lines:
Click here to see the example show
.demo_line_03{Width600px;}.Demo_line_03b{background: #ddd; margin-top: 4PX; display: inline-block; width: 180px; height: 1PX; _overflow: hidden; vertical-align: middle;}. demo_line_03 span{display: Span style= "color: #164;" >inline-block; width: 220px; vertical-align: middle;}
Pros: Text can be multiple lines
Floating Implementation Separator lines:
Click here to see the example show
. demo_line_04{ width:600px;}. demo_line_04{ 1;}. hidden;}
Advantages: NUN
To implement a separator line with characters:
Click here to see the example show
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!
Article from: http://www.daqianduan.com/4258.html
Several methods of CSS to realize dividing line skillfully