CSS3 Making Stereo Navigation

Source: Internet
Author: User
Tags time 0

<ulclass= "NAV">    <Li><ahref="">Home</a></Li>    <Li><ahref="">About Us</a></Li>    <Li><ahref="">Show</a></Li>    <Li><ahref="">Management</a></Li>    <Li><ahref="">Culture</a></Li>    <Li><ahref="">Contact Us</a></Li></ul>
1 <style>2 Body{3 background:#ebebeb;4}5 . Nav{6 width:450px;7 Height:50px;8 Font:Bold 0/50px Arial;9 margin:40px Auto 0;Ten background:#3fbeff; One Border-radius:5px; A Box-shadow:0 4px #04a7fa;/*Shadows*/ -} -  the . Nav a{ - Display:Inline-block; - -webkit-transition:All 0.2s ease-in; - -moz-transition:All 0.2s ease-in; + -o-transition:All 0.2s ease-in; - -ms-transition:All 0.2s ease-in; + transition:All 0.2s ease-in;/*duration 0.2s, delay time 0.5s, fade effect ease-in*/ A} at . Nav a:hover{ - -webkit-transform:Rotate (10deg); - -moz-transform:Rotate (10deg); - -o-transform:Rotate (10deg); - -ms-transform:Rotate (10deg); - Transform:Rotate (10deg);/*When you move the mouse, rotate it 10 degrees clockwise.*/ in} -  to . Nav Li{ + position:relative; - Display:Inline-block; the padding:0 16px; * font-size:12px; $ Text-shadow:1px 2px 4px rgba (0,0,0,.5);/*text Shadow, 0.5 transparent*/Panax Notoginseng List-style:None outside None; -} the  + . Nav Li{ A background:linear-gradient (to bottom, #04a7fa, #0599e4, #0488cb) no-repeat right/1px 15px; the}/*a small line on the right*/ +  - . Nav li:last-child{background:None;}/*Delete the last split line of a pseudo-element*/ $  $ . Nav A, - . Nav a:hover{ - Color:#fff; the text-decoration:None; -}Wuyi </style>

CSS3 Making Stereo Navigation

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.