I\'m working on a basic nav bar project, and I\'ve trying to get this list to align center. I\'ve tried using align-content
and text-align
, but my bar
Its simply can done by balancing your margin .. as you given to right same do with giving left. here is the modified CSS
@import url(http://fonts.googleapis.com/css?family=Quicksand:300);
#bannercontent{
font-family: 'Quicksand:300';
align-items: center;
text-align: center;
align-content: center;
font-size: 25px;
}
.banner{
list-style-type: none;
margin: 0;
padding: 0;
background-color: grey;
width: 560px;
height: 40px;
vertical-align: middle;
}
.links{
text-decoration: none;
}
.links:hover{
color: white;
text-align:center;
}
.bannerlinks
{
display: inline;
margin-right: 20px;
border: 12px;
border-color: black;
background-position: 50% 50%;
}