Website Div CSS button effect Design

Source: Internet
Author: User

After the website is re-designed with Div CSS, the speed and aesthetics will be improved, but the compatibility test must be completed.
When the DIV design button is used, it is more effective and simple. Website Div CSS, even if you are not using the whole site, the local effect is good.

Here is a method to explain the button effect. If you use it flexibly, the button designed by the div css website will make your site more colorful.

First read from www.cunbuluo.com
A style sheet intercepted in (village tribe:

# Prolist {letter-Spacing: 2px; font-size: 14px; font-weight: bold}
# Prolist ul {margin: 0px; padding: 0px}
# Prolist Li {Height: 35px; line-Height: 35px; Background: URL (images/pro_bg.gif) center no-Repeat; margin: 4px 0px 4px 0px}
# Prolist Li a {display: block; width: 165px}
# Prolist Li A: link {color: # dd0000; text-Decoration: none ;}
# Prolist Li A: visited {text-Decoration: none; color: # dd0000 ;}
# Prolist Li A: hover {text-Decoration: underline; color: # ff0000; Background: URL (images/pro_bg2.gif) center no-Repeat ;}
# Prolist Li A: active {text-Decoration: none; color: # dd0000 ;}

Note the relationship between each level of Div CSS elements. Pay attention to the red part, which is the main style sheet for implementing the button effect. The display: Block in # prolist Li a {display: block; width: 165px} must be set. Otherwise, the effect of switching the background is not obvious. In this way, use Div CSS to design the switch effect of the button background.

You can also change the hover style to # prolist Li A: hover {text-Decoration: underline; color: # ff0000; Background: URL (images/pro_bg2.gif) center no-Repeat; position: relative; left: 1px; top: 1px. After setting the background, the entire button will experience a decline.

 

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.