CSS rounded corner background image button-adaptive content size

Source: Internet
Author: User

BTN adaptive content size, which is no longer a new method. Many people will use it, and the effect is more practical.

Here we just put the following in https://addons.mozilla.org/CodeThe button is put forward for ease of use, and the image name is not changed. If you want to find out the image, you can view it on the page information.

. Install-button {
Font : Bold 14px "trebuchet ms", Helvetica, "Helvetica Neue", Arial, sans-serif ;
}
. Install-button: After {
Content : "." ;
Clear : Both ;
Display : Block ;
Visibility : Hidden ;
Height : 0 ;
Overflow : Hidden ;
}
. Install-button * {
Display : Block ;
Float : Left ;
Position : Relative ;
}
. Install-button {
Float : Left ;
Cursor : Pointer ;
Max-Width : 290px ;
Color : #062445 ;
Text-Decoration : None ;
Background : # 7cc11c URL ("https://addons.mozilla.org/img/sprite.png? 20090430 ") 100%-730px no-repeat ;
}
. Install-button a span {
Padding : 0 0 0 6px ;
Background : Transparent URL ("https://addons.mozilla.org/img/installbtn-edges.png") Left Bottom no-repeat ;
}
. Install-button a span Span {
Padding : 0 0 8px 0 ;
Background : Transparent URL ("https://addons.mozilla.org/img/installbtn-edges.png") Right Bottom no-repeat ;
}
. Install-button a span Span {
Left : -6px ;
Padding : 0 0 6px 0 ;
Background : Transparent URL ("https://addons.mozilla.org/img/installbtn-edges.png") Left top no-repeat ;
}
. Install-button a span strong {
Right : -6px ;
Padding : 10px 45px 0 6px ;
Background : Transparent URL ("https://addons.mozilla.org/img/installbtn-edges.png") Right top no-repeat ;
}
. Install-button a: hover,. Install-button a: focus,. Install-button a: Active {
Color : #0a3b73 ;
Background-color : # 9dd34c ;
Background-Position : 100%-860px ;
}

< P Class = "Install-button" > < A Href = "#" > < Span > < Span > < Span > < Strong > When you look at beautiful women in the street, you can enjoy the beauty when you look at the street. </ Strong > </ Span > </ Span > </ Span > </ A > </ P >

When you look at beautiful women in the street, you can enjoy the beauty when you look at the street.

Max-width is invalid in IE6. Only BR line breaks can be added.

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.