Multiple CSS methods to implement separation lines and css separation lines

Source: Internet
Author: User

Multiple CSS methods to implement separation lines and css separation lines

<! Doctype html>
<Html>
<Head>
<Meta charset = "UTF-8"/>
<Title> several methods for implementing separation lines in CSS </title>
<Style>
[Url = home. php? Mod = space & uid = 597245] @ charset [/url] "UTF-8 ";
Body, h1, h2, h3, h4, p, ul, li, ol, dl, dt, dd, input, textarea, figure, form {margin: 0; padding: 0}
Body, input, textarea {font-size: 12px; font-family: microsoft yahei}
Body {text-align: center; color: # 33383D ;}
Ul, ol {list-style: none}
Img {border: 0}
Button, input {line-height: normal; * overflow: visible}
Input, textarea {outline: none}
A {color: #3B8DD1; text-decoration: none}
A: hover {color: #8CAC52}
. Demo-header {position: relative; height: 22px; background-color: # 33363B; line-height: 22px; padding: 2px 10px; text-align: left ;}
. Demo-name {color: # ccc ;}
. Demo-title,. demo-footer {height: 0; overflow: hidden}
. Demo-container {clear: both; padding: 40px 10px 20px; text-align: left; margin: 0 auto; line-height: 18px ;}
. Demo h2 {font-size: 15px; padding-bottom: 6px; margin-bottom: 20px; border-bottom: solid 1px # ddd ;}
</Style>
</Head>
<Body>
<Div class = "demo-container demo">
<Style type = "text/css">
. Demo {
Width: 600px;
}
. Line_01 {
Padding: 0 20px 0;
Margin: 20px 0;
Line-height: 1px;
Border-left: 200px solid # ddd;
Border-right: 200px solid # ddd;
Text-align: center;
}
. Line_02 {
Height: 1px;
Border-top: 1px solid # ddd;
Text-align: center;
}
. Line_02 span {
Position: relative;
Top:-12px;
Background: # fff;
Padding: 0 20px;
}
. Line_03 {
Width: 600px;
}
. Line_03 B {
Background: # ddd;
Margin-top: 4px;
Display: inline-block;
Width: 180px;
Height: 1px;
_ Overflow: hidden;
Vertical-align: middle;
}
. Line_03 span {
Display: inline-block;
Width: 220px;
Vertical-align: middle;
Text-align: center;
}
. Line_04 {
Width: 600px;
}
. Line_04 {
Overflow: hidden;
_ Zoom: 1;
}
. Line_04 B {
Background: # ddd;
Margin-top: 12px;
Float: left;
Width: 26%;
Height: 1px;
_ Overflow: hidden;
}
. Line_04 span {
Padding: 0 10px;
Width: 32%;
Float: left;
Text-align: center;
}
. Line_05 {
Letter-spacing:-1px;
Color: # ddd;
}
. Line_05 span {
Letter-spacing: 0;
Color: #222;
Margin: 0 20px;
}
</Style>
<Div> http://www.999jiujiu.com/</div>
<Div class = "line_01"> single label implementation for small separation lines </div>
<Br>
<Br>
<Div class = "line_02"> <span> color-based implementation of small separators </span> </div>
<Br>
<Br>
<Div class = "line_03"> <B> </B> <span> inline-block implementation of small separators </span> <B> </div>
<Br>
<Br>
<Div class = "line_04"> <B> </B> <span> small separator line floating </span> <B> </div>
<Br>
<Br>
<Div class = "line_05"> ----------- <span> small separator character </span> ------------ </div>
</Div>
</Body>
</Html>

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.