Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS horizontal menu with nested divs

Status
Not open for further replies.

maxformed

Technical User
Apr 22, 2003
168
US
For some reason I've crashed. Trying to create a horizontal navigation/menu bar where each div (i.e., button) will be a different color. Thought I should have a container div and nest each, but can't seem to figure out the code - originally was to be all one

Code:
div#buttons {
	display: block;
	position: absolute; left: 0px; top: 130px; width: 100%;
	background-color: #003366;
	height: 18px; padding-top: 2px;
	overflow: visible;
	}
#buttons a {
	display: inline;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 9px;
	background-color: #003366;
	color: #ffffff;
	border-right-width: 1px; border-right-style: solid; border-right-color: #ffffff;
	height: 16px;
	padding-left: 3px; padding-right: 3px;
		position: relative;
	}
#buttons a:hover {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 9px;
	background-color: #003366;
	color: #cccccc;
	border-right-width: 1px; border-right-style: solid; border-right-color: #cccccc;
	height: 16px;
	padding-left: 3px; padding-right: 3px;
		position: relative;
}

But now client is desiring each item to be "different" - not an expert on the selectors at the best of times.

There are going to be about seven items.

Any help appreciated.

Max

 
huh that looks like to much

why dont you just make a table in the div with 7 cells -- then give each cell a different bground color?

<Signature>
Sometimes the Answer You Are LOOKING for can be FOUND BY SEARCHING THE FAQ'S @&%$*#!!!
</Signature>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top