0
How can I center this menu?
ul{
margin: 0;
}
ul {
list-style: none;
}
a {
text-decoration: none;
}
.clearfix:after {
display: block;
content: " ";
clear: both;
}
#site-navigation {
background-color: #111;
border-top: 4px solid #289dcc;
}
li {
float:left;
position: relative;
font-family: 'Open Sans', serif;
font-weight: 300;
}
a {
color: #ffffff;
display: block;
font-size: 14px;
font-weight: 600;
padding: 10px 12px;
text-transform: uppercase;
}
.main-navigation a:hover, .main-navigation ul li.current-menu-item {
background-color: #289dcc;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sem título</title>
</head>
<link rel="stylesheet" id="colormag_style-css" href="files/style.css" type="text/css" media="all">
<body bgcolor="#000000" style="margin:0px;">
<div align="center"><b style="font-size:50px; color:#FFF">LOGO</b></div>
<nav id="site-navigation" class="main-navigation">
<div class="clearfix">
<ul>
<li><a href="#">MENU</a></li>
<li><a href="#">MENU</a></li>
<li><a href="#">MENU</a></li>
<li><a href="#">MENU</a></li>
<li><a href="#">MENU</a></li>
</ul></div>
</div>
</nav></div>
</body>
</html>
Guys, thank you so much it worked out, you guys are awesome. Thank you so much
– Guilherme
@When your question is solved it’s nice to choose some of the answers as best in the upper left corner of the answer, it helps the site to get more organized and other users too :)
– Felipe Duarte