Tip: corner effects can be achieved without images

Source: Internet
Author: User
Code
< Style Type = "Text/CSS" >

# Xsnathh1, # xsnathh2, # xsnathp { Margin : 0 10px ; Letter-spacing : 1px ; }
# Xsnathh1 { Font-size : 2.5em ; Color : # Fff ; }
# Xsnathh2 { Font-size : 2em ; Color : # 06a ; Border : 0 ; }
# Xsnathp { Padding-bottom : 0.5em ; }
# Xsnathh2 { Padding-top : 0.5em ; }
# Xsnail bait { Background : Transparent ; Margin : 1em ; }

. Xtop,. xbottom { Display : Block ; Background : Transparent ; Font-size : 1px ; }
. Xb1,. XB2,. xb3,. xb4 { Display : Block ; Overflow : Hidden ; }
. Xb1,. XB2,. xb3 { Height : 1px ; }
. XB2,. xb3,. xb4 { Background : # Ccc ; Border-left : 1px solid # 08c ; Border-Right : 1px solid # 08c ; }
. Xb1 { Margin : 0 5px ; Background : # 08c ; }
. XB2 { Margin : 0 3px ; Border-Width : 0 2px ; }
. Xb3 { Margin : 0 2px ; }
. Xb4 { Height : 2px ; Margin : 0 1px ; }

. Xboxcontent { Display : Block ; Background : # Ccc ; Border : 0 solid # 08c ; Border-Width : 0 1px ; }

</Style>

< Div ID = "Xsnail bait" >
< B Class = "Xtop" > < B Class = "Xb1" > </ B > < B Class = "XB2" > </ B > < B Class = "Xb3" > </ B > < B Class = "Xb4" > </ B > </ B >
< Div Class = "Xboxcontent" >
< H1 > Snail bait borders </ H1 >
< P > Based on nifty corners by Alessandro fulciniti < BR /> Http://pro.html.it/esempio/nifty/ </ P >

< H2 > Rounded borders without images </ H2 >
< P > Lorem ipsum dolor sit Amet, consectetuer adipiscing elit, sed diam nonummy nibh
Euismod tincidunt ut laoreet dolore Magna aliquam erat volutpat. ut wisi enim
Ad minim veniam, Quis nostrud exerci tation ullamcorper suscipit lobortis nisl
Ut aliquip ex EA commodo consequat. </ P >
< P > DUIs autem vel Eum iriure dolor in hendrerit
In vulputate Velit esse molestie consequat, Vel illum dolore EU feugiat nulla
Facilisis at Fig
Luptatum zzril delenit augue DUIs dolore te feugait nulla facilisi. </ P >
</ Div >
< B Class = "Xbottom" > < B Class = "Xb4" > </ B > < B Class = "Xb3" > </ B > < B Class = "XB2" > </ B > < B Class = "Xb1" > </ B > </ B >
</ Div >

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.