Stuck trying to center navigation bar
-
Been trying to figure out how to align my navigation menu center but haven’t had luck. Looked at other threads on here but all the suggestions didn’t help. Hoping someone can help me out?
The blog is https://kawaiivinyl.com and I put the CSS below. Thank you in advance! ??
.nav{ background:#ED4901; width:835px; float:left; display:block; position:relative; } .nav ul{ list-style:none; display:inline-block; } .nav li{ float:left; position:relative; display:inline; } .nav a{ padding: 10px 65px 10px 24px; display:inline-block; text-decoration: none; color:#fff; font-size:17px; text-align:center; text-transform: lowercase; } .nav ul ul{ display:none; position:absolute; top:100%; left:0; float:left; text-align:center; z-index:99999; background: #212121; } .nav ul ul ul{ top: 30%; left:100%; background: #343434; } .nav ul ul a{ height:auto; line-height:1em; padding:10px; width:130px; } .nav li:hover > a,.nav ul ul:hover > a{ color:#ccc; } .nav ul li:hover > ul{ display:block; }
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Stuck trying to center navigation bar’ is closed to new replies.