Carbon fiber style plug-in navigation menu: HTML code

Source: Internet
Author: User

Following the previous article "carbon fiber-style plug-in navigation menu", Richard Carpenter converted the menu image into a CSS/HTML document. Let's start learning together!

To view the full CSS/HTML version, click here:

Deployment documents

Put the sheet in another folder, "stylesheets", and then create a new folder named "images" to store the image.

Create HTML elements

Open the html file in the Code Editor, create a DIV in the tag "BODY", and set the ID attribute to "iner". This DIV will be the container of all elements. The Code is as follows:

Create another DIV in the "container" DIV. The ID attribute is "nav", which is a container containing all navigation elements. The Code is as follows:

Create a simple UL unordered list in the "nav" DIV, set the UL class attribute to "navigation", and set different class attributes for each list element (LI, set the LI style based on the class attribute. The Code is as follows:

The above is the main HTML code. Next we start to split the navigation image.

  • Four pages in total:
  • Previous Page
  • 1
  • 2
  • 3
  • 4
  • Next Page

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.