Hi, I'm trying to center my menu for the website I'm building, but I can't seem to get the CSS code right to get it to center here is the code. .menu{margin:50px; padding:50px; height:30px; width:100%; display:block;}
CSS Help
8
Hi, I'm trying to center my menu for the website I'm building, but I can't seem to get the CSS code right to get it to center here is the code.
.menu{margin:50px; padding:50px; height:30px; width:100%; display:block;}
.menu li{padding:0; margin:0; list-style:none; display:inline; text-align:center;}
.menu li a{float:left; padding-left:15px; display:block; color:#FFE099); text-decoration:none; font:14px Verdana, Arial, Helvetica, sans-serif; cursor:pointer; }
.menu li a span{text-align:center; line-height:30px; float:left; display:block; padding-right:15px; }
.ul {
clear:left;
float:left;
list-style:none;
margin:0;
padding:0;
position:relative;
left:50%;
text-align:center;
}
.menu{margin:50px; padding:50px; height:30px; width:100%; display:block;}
.menu li{padding:0; margin:0; list-style:none; display:inline; text-align:center;}
.menu li a{float:left; padding-left:15px; display:block; color:#FFE099); text-decoration:none; font:14px Verdana, Arial, Helvetica, sans-serif; cursor:pointer; }
.menu li a span{text-align:center; line-height:30px; float:left; display:block; padding-right:15px; }
.ul {
clear:left;
float:left;
list-style:none;
margin:0;
padding:0;
position:relative;
left:50%;
text-align:center;
}
- lovenot
- Matt Braun
- [1] reply
- awebforyou
- transparentb
- Matt Braun
- neil_patmore
- [ 1 ] Thanks
- IMAnthony
- [ 1 ] Thanks
Next Topics on Trending Feed
-
8