Written By:-Avinash Malhotra
Our Website:- Tech Altum
- create a div with class nav
- Create a ul
- Create four li inside
- Write Above Text inside each li.
- Create a style opening and closing tag inside head
- Start writing following css inside style tag
- .nav{ height:60px; width:100%}
- .nav ul li{ float: left; background: black; width: 149px; height: 50px; font-size: 24px; text-align: center; line-height: 57px; margin-right: 1px;}
- .nav ul li a{ color: gray; text-decoration:none}
- .nav ul li:hover{ background:white; }
- .nav ul li:hover a{color:red; }
- .nav ul li a:hover{ text-decoration:underline}
No comments:
Post a Comment