CSS3 make Web page drop-down menu code explanation

Source: Internet
Author: User

When I was writing a Notepad theme for WordPress, I stopped by learning some of the new CSS3 features that I now share. Viewing the demo You can see a multilevel pull-down menu similar to the Mac style, created using Border-radius,box-shadow and Text-shadow. Perfectly rendered in Firefox,safari and Chrome browsers. Even browsers such as ie7+, which are incompatible with CSS3, can render the page normally, ignoring the rendering of rounded corners and shadows.

View Demo: Http://www.webdesignerwall.com/demo/css3-dropdown-menu


The following illustration shows the menu style in an incompatible CSS3 situation.

A gradient image was used

White transparent images are used to achieve a gradient effect. Because the new CSS3 gradient feature has not been supported by all browsers, it is safer to use a simple background image.

The intensity of the gradient can be changed by switching the up or down of the background image. In addition, the gradient color can easily be adjusted by changing the background color.

CSS Code

I'm not going to explain CSS code on a line-by-row basis. The following picture is a good explanation for the key point of writing a drop-down menu.

English manuscript:CSS3 Dropdown Menu webdesignerwall

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.