HTML CSS examples for CSS Form:input button style
Navigation bar buttons
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> ul {<!-- w w w . j a v a 2 s. co m--> list-style-type: none; margin: 0; padding: 0; overflow: hidden; background-color: #55AAFF; } li { float: left; } li a { display: block; color: black; text-align: center; padding: 14px 16px; text-decoration: none; } li a:hover { background-color: #1D72C7; } .indextext { font-family: roboto, arial, calibri, sans-serif; text-align: center; padding: 50px 150px 0px 150px; } </style> </head> <body> <div class="logoimg"> <img src="https://www.java2s.com/style/demo/Firefox.png"> </div> <div class="nav"> <ul> <li id="1"> <a href="#">Home</a> </li> <li id="2"> <a href="">Portfolio</a> </li> <li id="3"> <a href="">Prices</a> </li> <li id="4"> <a href="">Contact Us</a> </li> <li id="5"> <a href="">About Us</a> </li> </ul> </div> <div class="mainimg"> <img src="https://www.java2s.com/style/demo/Google-Chrome.png"> </div> <div class="indextext"> <p>this is a test this is a test</p> </div> </body> </html>