1 reply [Last post]
vettenut2011
vettenut2011's picture
Offline
newbie
Kentucky
Last seen: 3 years 14 weeks ago
Kentucky
Timezone: GMT-4
Joined: 2016-07-04
Posts: 1
Points: 2

On http://classic-corvettes-ky.com the menu used main.css as follows:

#menu {
	border-radius: 14pt;
	width: 100%;
	height: 28px;
	margin: 50px auto;
	display: inline-block;
	text-align: center;
}
 
#menu ul li, #menu ul li a, #menu ul li ul li a {
	color: #1B49E0;
	font-family: "Comic Sans MS", sans-serif;
	font-size: 16pt;
	text-decoration: none;
	font-weight: bold;
	font-style: normal !important;
}
 
#menu ul li a:hover, #menu ul li ul li a:hover {
	color: #7B0BA3;
}
 
#menu ul {
	list-style: none;
	margin: 0px auto;
	padding: 0px 10px 0px 10px;
	display: table;
	text-align: center;
}
 
#menu > ul{
	box-shadow: 0.1em 0.1em 0.2em #000;
	border-style: solid;
	border-color: #1B49E0;
	border-radius: 14pt;
	background-color: #eeeeee;
}
 
 
#menu ul li {
	/* float: left; */
	padding: 0px 10px 0px 10px;
	border-right: solid;
	border-color: #1B49E0;
	border-width: 2px;
	display: table-cell;
	position: relative;
}
 
 
#menu ul li ul li {
	border: none;
	background-color: #eeeeee;
	border-radius: 14pt;
	width: 300px;
	height: 35px;
	border-style: solid;
	box-shadow: 0.1em 0.1em 0.2em #000;
	float: left;
	clear: left;
	text-align: left;
	display: block;
}
 
 
 
#menu ul li:hover {
	cursor: hand;
	cursor: pointer;
}
 
#menu ul li.last,
#menu > ul > li:nth-last-child(1) 
{
	border: none;
}
 
#menu ul li ul {
	position: absolute;
	margin-left: -20px;
	display: none;
	z-index:9999;
	padding-top: 6px;
	margin-top: -2px;
}
 
#menu li:hover > ul {
	display: block;
}

What do I change to make menu look good?

//mod edit: bbcodes url and code added ~gt

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 2 days 7 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

Hi vettenut2011 Looks like

Hi vettenut2011
Looks like you have already made some changes.
I'd get rid of the width on #menu and the border, background and box-shadow.
But what looks good to me might not be what looks good to you.