HTML CSS examples for CSS Widget:Menu
Getting HTML Menu Centered on Screen
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #menuList {<!--from ww w .j ava 2 s.c o m--> display:block; width:100%; margin-left:auto; margin-right:auto; } #menuList ul { margin:0px; padding:0px; list-style-type:none; text-align:center; } #menuList li { list-style:none; display:inline-block; margin-right:0.6em; } #menuList a { display:block; width:9em; color:Chartreuse; text-decoration:none; text-align:center; } </style> </head> <body> <div id="menuList"> <ul> <li> <a href="#">Lor</a> </li> <li> <a href="#">Lore</a> </li> <li> <a href="#">Lorem</a> </li> </ul> </div> </body> </html>