CSS Menu - How to align it propertly?

coronac
avatar
rank newbie

newbie


Posts: 1
Joined: 2008-07-24

Hello,

I'm working on a new menu for a project site, but there is one thing.

I can't get the menu to align properly in the page.

here is the link http://www.coronacompanies.com/test_index.html Jawdropping!

and here is the css code

a {
	color: #999999;
	text-decoration: none;
}
a:hover {
	color: #09548B;
}
p {
	margin: 0 0 5px;
	padding: 0;
	line-height: 18px;
}
.wrapper {
	width: 500px;
	margin: 0px auto;
}
.nav {
	background: #ffffff;
	float: left;
}
.nev-wrapper {
	clear: both;
	float: left;
}

.nav ul {
	width: 500px;
	height: 38px;
	float: left;
	margin: 0;
	padding-top: 3px;
	list-style: none;
	font-size: 11px;
	font-family:Arial, Helvetica, sans-serif;
}
.nav li {
	float: left;
	padding: 0 5px;
	background: url(split.png) no-repeat right center;
	position: relative;
	z-index: 1;
}
.nav li.last {
	background: none;
}
.nav li:hover {
	z-index:2;
}
.nav li a {
	display: block;
	line-height: 38px;
	overflow: hidden;
	float: left;
}
a .menu-left {
	background: none;
	width: 8px;
	height: 32px;
	line-height: 35px;
	display: block;
	float: left;
}
a .menu-mid {
	background: none;
	height: 32px;
	line-height: 35px;
	display: block;
	float: left;
}
a .menu-right {
	background: none;
	width: 8px;
	height: 32px;
	line-height: 35px;
	display: block;
	float: left;
}
.nav li a:hover .menu-left,
.nav li.active a .menu-left,
.nav li:hover a .menu-left,
.nav li a:hover .menu-mid,
.nav li.active a .menu-mid,
.nav li:hover a .menu-mid,
.nav li a:hover .menu-right,
.nav li.active a .menu-right,
.nav li:hover a .menu-right {
	background-position: 0 -37px;
	line-height: 35px;
}
.nav li a:hover,
.nav li.active a,
.nav li.hover a,
.nav li:hover a {
	color: #ea4d56;
}
.nav li:hover .sub,
.nav li.hover .sub {
	display:block;
}
.nav li .sub {
	display: none;
	position: absolute;
	top: 27px;
	left: 6px;
	background: url(submenu_top.png) no-repeat;
	width: 186px;
	padding-top: 9px;
}
.nav li ul {
	background: url(submenu_bg.png) repeat-y;
	width: 162px;
	height: auto;
	margin: 0;
	padding: 0 12px 10px;
	list-style: none;
	font-size: 12px;
}

.nav li:hover li,
.nav li.active li {
	width: 100%;
	padding: 1px 0 2px;
	border-bottom: 1px #C1D9F0 dashed;
	background: none !important;
}
.nav li:hover li a,
.nav li.active li a {
	color: #999999;
	background: none !important;
	line-height: normal;
	width: 156px;
	padding: 8px 3px 3px;
	text-indent: 1px;
}
.nav li:hover li a:hover,
.nav li.active li a:hover {
	color: #000000;
	background: #ea4d56 !important;
	font-weight:bold;
	text-decoration: none;
	line-height: normal;
}
/*IE*/
.nav li li a:hover,
.nav li li a:hover {
	color: #fff;
	background: #165B9F !important;
	text-decoration: none;
	line-height: normal;
}
/**/
.nav .btm-bg {
	background: url(submenu_bottom.png) no-repeat;
	width: 205px;
	height: 9px;
	overflow: hidden;
	clear: both;
}

how can i fix it so it will look like attached screen shot?

if anyone can point me in the right direction, i would appreciate it!

AttachmentSize
coronaindexshot.jpg398.22 KB