Hi,
The search bar isn't positioned so co-ordinates will do nothing. Add position:absolute and remove the float and then add a stacking context to the parent with position:relative so that the absolute element has a current context rather than being based from the viewport.
e.g.
Code:
#pageWrapper {
position:relative;
}
#mainBanner .right {
position:absolute;
z-index:99;
top:10px;/* adjust to suit*/
right:120px;/* adjust to suit*/
width:130px;
margin:0;
}
The black background is the background of the list showing through because you have changed the size of the anchor so it no longer matches the width of the list element.
Either Remove the background:
#nav li {background:transparent}
Or you can resize it like this
Code:
#nav li ul a {
background: none repeat scroll 0 0 #C8C8C8;
color: #000000;
float: left;
height: 30px;
line-height: 30px;
padding-left: 10px;
text-align: left;
width:140px;
z-index: 30;
}
To center the nav just do it by hand because its floated and acan't be done automatically without changing a few things around. Just remove the width and nudge it into position.
#nav {width:auto;margin:0 0 0 10px}/* adjust to suit*/
Why is there a wrapper around your page that does nothing?
Code:
<div id="center">
...
It has no styles applied so remove it. You already have a pagewrapper. (You also have a div around the menu when you didn't really need one - it looks like most of mainmenu rules are not needed including the border.)
Don't use the center tag as it is deprecated in strict and you should use css instead.
Bookmarks