HTML CSS examples for CSS Widget:Menu Bar
Adding top and bottom border for menu bar
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> @font-face { font-family: "CapsuulaRegular"; font-style: normal; font-weight: normal; } body {<!--from ww w .ja va 2 s . co m--> background: none repeat scroll 0 0 #FFFFFF; color: #000000; font-family: 'CapsuulaRegular'; } .clearboth { clear: both; } .wrapper { margin: 0 auto; position: relative; width: 1150px; } .header { padding-top: 20px; } .logo { float: left; font-size: 72px; text-transform: uppercase; } .socialMedia { float: right; margin-top: 50px; } .socialMedia ul { list-style-type: none; } .socialMedia li { float: left; padding-right: 20px; } .socialMedia li a.twitter { background: url("https://www.java2s.com/style/demo/Firefox.png") repeat scroll 0 0 transparent; display: block; height: 45px; text-decoration: none; width: 45px; } .socialMedia li a.instagram { background: url("https://www.java2s.com/style/demo/Opera.png") repeat scroll 0 0 transparent; display: block; height: 45px; text-decoration: none; width: 45px; } .socialMedia li a.pinterest { background: url("https://www.java2s.com/style/demo/InternetExplorer.png") repeat scroll 0 0 transparent; display: block; height: 45px; text-decoration: none; width: 45px; } .navigation { border-bottom: 1px solid #000000; border-top: 1px solid #000000; display:inline-block; width:100%; text-transform: uppercase; } .navigation ul { list-style-type: none; } .navigation li { float: left; padding-right: 50px; } .navigation li a { color: #000000; font-size: 30px; text-decoration: none; } .footerNav ul { list-style-type: none; } </style> </head> <body> <div class="wrapper"> <div class="header"> <div class="logo"> Paola Di </div> <!--logo--> <div class="socialMedia"> <ul> <li> <a class="twitter" href="#"> </a> </li> <li> <a class="instagram" href="#"> </a> </li> <li> <a class="pinterest" href="#"> </a> </li> </ul> </div> </div> <div class="clearboth"></div> <div class="navigation"> <ul> <li> <a href="#">Home</a> </li> <li> <a href="#">About Us</a> </li> <li> <a href="#">Contact Us</a> </li> <li> <a href="#">Blog</a> </li> </ul> </div> <div class="contentArea"> </div> </div> </body> </html>