Problem with placement of menubuttons in the nav bar.
-
The problem is the following i was modifying my layout in my styles.css
I was working on a lot of parameters at the same time, when i checked it online my menu buttons where out of my nav bar and there seem to be now way i can move them back into it. It was verry odd since i didn’t remeber changing anthing significant at that time.I reinstalled the “header.php” file but the problem remained. I guess it must have made a mistake in my css code.
this is the piece of nav bar code from the header file:
<div id="nav"> <ul class="nav"> <li class="first"><a href="<?php bloginfo('url'); ?>">Home</a></li> <?php wp_list_pages('title_li='); ?> </ul> </div>
This is my css for the “nav” bar:
#nav{background:#ff0000;height:20px;padding:0;} ul.nav{float:left;height:30px;line-height:30px;list-style:none;font-size:12px;font-weight:700;text-transform:uppercase;margin:0;padding:0;} ul.nav li{float:left !important;list-style-type:none;margin:0;padding:0;} ul.nav li a,ul.nav li a:link,ul.nav li a:visited{float:left;border-bottom:0;border-left:0;background:#f3f2ed;color:#069;display:block;text-decoration:none;padding:0 10px;} ul.nav li a:hover,ul.nav li a:active{background:#fff;color:#555;text-decoration:none;} ul.nav li.home a{border-left:2px solid #fff;text-decoration:none;} ul.nav li.current_page_item a{text-decoration:none;color:#555;background:#fff;} ul.nav li ul{float:left;margin:0;padding:0;}
i m really clueless for the moment :s , i m still learning css and php, but this to make no sense
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Problem with placement of menubuttons in the nav bar.’ is closed to new replies.