1 Replies - 1122 Views - Last Post: 25 October 2010 - 09:46 AM

#1 Fire_child  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 21
  • Joined: 14-September 10

Drop Down menu not working

Posted 25 October 2010 - 09:11 AM

ok, I am no master at HTML but have been doing it for a little while. I just cannot see why my drop down nav is not working. Here is the HTML
<ul id="menu">
	<li><a href="index.html">Home</a></li>
	<li><a href="menu.html">Menu</a></li>
	<li><a href="store.html" class="drop">Store</a>
		<div class="dropdown_1column">
		<div class="col_1">

		<p>Sauces</p>
	    </div>  
        <div class="col_1"> 
        <p>Gift cards</p>
		</div>  
        <div class="col_1">
        <p>Souvenirs</p>
		</div>  
        <div class="col_1">

        <p>Tshirts</p>
		</div>
	</li>
	<li><a href="gallery.html" class="drop">Gallery</a>
		<div class="dropdown_1column">
        <p>The Fair</p>
		<p>Atascadero</p>

        <p>Merced</p>
        <p>Paso Robles</p>
        <p>Visalia</p>
		</div>
	</li>
	<li><a href="aboutus.html" class="drop">About Us</a>
		<div class="dropdown_1column">
		<p>Atascadero</p>
        <p>Merced</p>
        <p>Paso Robles</p>
        <p>Visalia</p>
        <p>Contact Big Bubba</p>
        <p>Job Application</p>

		</div>
	</li>
	<li><a href="bullsheet.html" class="drop">Bullsheet</a>
		<div class="dropdown_1column">
		<p>Bullsheet - Mailing List</p>
        <p>Follow us - Twitter</p>
        <p>Like us-Facebook</p>	
        <p>Watch us-You Tube</p>
        <p>Space us-Myspace</p>        	
        </div>
	</li>  
</ul>


And here is the CSS for it...I know this is just something I have overlooked:
#menu {
	list-style:none;
	width:780px;
	margin:30px auto 0px auto;
	height:45px;
	padding:0px 20px 0px 20px;

	/* Rounded Corners */
	
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	border-radius: 10px;

	/* Background color and gradients */
	
	background-image: url(spacer.gif);

	/* Borders */
	
	border:none;
}

#menu li {
	float:left;
	display:block;
	text-align:center;
	position:absolute-center;
	padding: 4px 10px 4px 10px;
	margin-right:30px;
	margin-top:7px;
	border:none;
}

#menu li:hover {
	border: 1px solid #020202;
	padding: 4px 9px 4px 9px;
	
	/* Background color and gradients */
	
	background:none;
	background: -moz-linear-gradient(top, #FF9900, #020202);
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FF9900), to(#020202));
	
	/* Rounded corners */
	
	-moz-border-radius: 5px 5px 0px 0px;
	-webkit-border-radius: 5px 5px 0px 0px;
	border-radius: 5px 5px 0px 0px;
}

#menu li a {
	font-family:Arial, Helvetica, sans-serif;
	font-size:14px; 
	color: #FF9900;
	display:block;
	outline:0;
	text-decoration:none;
	text-shadow: 1px 1px 1px #000;
}

#menu li:hover a {
	color:#161616;
	text-shadow: 1px 1px 1px #ffffff;
}
#menu li .drop {
	padding-right:21px;
	background:url("drop.png") no-repeat right 8px;
}
#menu li:hover .drop {
	background:url("drop.png") no-repeat right 7px;
}

.dropdown_1column{
	margin:4px auto;
	float:left;
	position:absolute;
	left:-999em; /* Hides the drop down */
	text-align:left;
	padding:10px 5px 10px 5px;
	border:1px solid #777777;
	border-top:none;
	
	/* Gradient background */
	background:#F4F4F4;
	background: -moz-linear-gradient(top, #FF9900, #020202);
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FF9900), to(#020202));

	/* Rounded Corners */
	-moz-border-radius: 0px 5px 5px 5px;
	-webkit-border-radius: 0px 5px 5px 5px;
	border-radius: 0px 5px 5px 5px;
}

.dropdown_1column {width: 140px;}

#menu li:hover .dropdown_1column,{
	left:-1px;
	top:auto;
}

.col_1,{
	display:inline;
	float: left;
	position: relative;
	margin-left: 5px;
	margin-right: 5px;
}
.col_1 {width:130px;}

#menu .menu_right {
	float:right;
	margin-right:0px;
}
#menu li .align_right {
	/* Rounded Corners */
	-moz-border-radius: 5px 0px 5px 5px;
    -webkit-border-radius: 5px 0px 5px 5px;
    border-radius: 5px 0px 5px 5px;
}

#menu li:hover .align_right {
	left:auto;
	right:-1px;
	top:auto;
}

#menu p, #menu h2, #menu h3, #menu ul li {
	font-family:Arial, Helvetica, sans-serif;
	line-height:21px;
	font-size:12px;
	text-align:left;
	text-shadow: 1px 1px 1px #FF9900;
}
#menu h2 {
	font-size:21px;
	font-weight:400;
	letter-spacing:-1px;
	margin:7px 0 14px 0;
	padding-bottom:14px;
	border-bottom:1px solid #666666;
}
#menu h3 {
	font-size:14px;
	margin:7px 0 14px 0;
	padding-bottom:7px;
	border-bottom:1px solid #888888;
}
#menu p {
	line-height:18px;
	margin:0 0 10px 0;
}

#menu li:hover div a {
	font-size:12px;
	color:#015b86;
}
#menu li:hover div a:hover {
	color:#029feb;
}



Is This A Good Question/Topic? 0
  • +

Replies To: Drop Down menu not working

#2 Fire_child  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 21
  • Joined: 14-September 10

Re: Drop Down menu not working

Posted 25 October 2010 - 09:46 AM

I just noticed I did not put the full css in there
#menu {
	list-style:none;
	width:780px;
	margin:30px auto 0px auto;
	height:45px;
	padding:0px 20px 0px 20px;

	/* Rounded Corners */
	
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	border-radius: 10px;

	/* Background color and gradients */
	
	background-image: url(spacer.gif);

	/* Borders */
	
	border:none;
}

#menu li {
	float:left;
	display:block;
	text-align:center;
	position:absolute-center;
	padding: 4px 10px 4px 10px;
	margin-right:30px;
	margin-top:7px;
	border:none;
}

#menu li:hover {
	border: 1px solid #020202;
	padding: 4px 9px 4px 9px;
	
	/* Background color and gradients */
	
	background:none;
	background: -moz-linear-gradient(top, #FF9900, #020202);
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FF9900), to(#020202));
	
	/* Rounded corners */
	
	-moz-border-radius: 5px 5px 0px 0px;
	-webkit-border-radius: 5px 5px 0px 0px;
	border-radius: 5px 5px 0px 0px;
}

#menu li a {
	font-family:Arial, Helvetica, sans-serif;
	font-size:14px; 
	color: #FF9900;
	display:block;
	outline:0;
	text-decoration:none;
	text-shadow: 1px 1px 1px #000;
}

#menu li:hover a {
	color:#161616;
	text-shadow: 1px 1px 1px #ffffff;
}
#menu li .drop {
	padding-right:21px;
	background:url("drop.png") no-repeat right 8px;
}
#menu li:hover .drop {
	background:url("drop.png") no-repeat right 7px;
}

.dropdown_1column{
	margin:4px auto;
	float:left;
	position:absolute;
	left:-999em; /* Hides the drop down */
	text-align:left;
	padding:10px 5px 10px 5px;
	border:1px solid #777777;
	border-top:none;
	
	/* Gradient background */
	background:#F4F4F4;
	background: -moz-linear-gradient(top, #FF9900, #020202);
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FF9900), to(#020202));

	/* Rounded Corners */
	-moz-border-radius: 0px 5px 5px 5px;
	-webkit-border-radius: 0px 5px 5px 5px;
	border-radius: 0px 5px 5px 5px;
}

.dropdown_1column {width: 140px;}

#menu li:hover .dropdown_1column,{
	left:-1px;
	top:auto;
}

.col_1,{
	display:inline;
	float: left;
	position: relative;
	margin-left: 5px;
	margin-right: 5px;
}
.col_1 {width:130px;}

#menu .menu_right {
	float:right;
	margin-right:0px;
}
#menu li .align_right {
	/* Rounded Corners */
	-moz-border-radius: 5px 0px 5px 5px;
    -webkit-border-radius: 5px 0px 5px 5px;
    border-radius: 5px 0px 5px 5px;
}

#menu li:hover .align_right {
	left:auto;
	right:-1px;
	top:auto;
}

#menu p, #menu h2, #menu h3, #menu ul li {
	font-family:Arial, Helvetica, sans-serif;
	line-height:21px;
	font-size:12px;
	text-align:left;
	text-shadow: 1px 1px 1px #FF9900;
}
#menu h2 {
	font-size:21px;
	font-weight:400;
	letter-spacing:-1px;
	margin:7px 0 14px 0;
	padding-bottom:14px;
	border-bottom:1px solid #666666;
}
#menu h3 {
	font-size:14px;
	margin:7px 0 14px 0;
	padding-bottom:7px;
	border-bottom:1px solid #888888;
}
#menu p {
	line-height:18px;
	margin:0 0 10px 0;
}

#menu li:hover div a {
	font-size:12px;
	color:#015b86;
}
#menu li:hover div a:hover {
	color:#029feb;
}


.strong {
	font-weight:bold;
}
.italic {
	font-style:italic;
}

.imgshadow { /* Better style on light background */
	background:#FFFFFF;
	padding:4px;
	border:1px solid #777777;
	margin-top:5px;
	-moz-box-shadow:0px 0px 5px #666666;
	-webkit-box-shadow:0px 0px 5px #666666;
	box-shadow:0px 0px 5px #666666;
}
.img_left { /* Image sticks to the left */
	width:auto;
	float:left;
	margin:5px 15px 5px 5px;
}

#menu li .black_box {
	background-color:#333333;
	color: #eeeeee;
	text-shadow: 1px 1px 1px #000;
	padding:4px 6px 4px 6px;

	/* Rounded Corners */
	-moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;

	/* Shadow */
	-webkit-box-shadow:inset 0 0 3px #000000;
	-moz-box-shadow:inset 0 0 3px #000000;
	box-shadow:inset 0 0 3px #000000;
}

#menu li ul {
	list-style:none;
	padding:0;
	margin:0 0 12px 0;
}
#menu li ul li {
	font-size:12px;
	line-height:24px;
	position:relative;
	text-shadow: 1px 1px 1px #FF9900, #020202;
	padding:0;
	margin:0;
	float:none;
	text-align:left;
	width:130px;
}
#menu li ul li:hover {
	background:none;
	border:none;
	padding:0;
	margin:0;
}

#menu li .greybox li {
	background:#F4F4F4;
	border:1px solid #bbbbbb;
	margin:0px 0px 4px 0px;
	padding:4px 6px 4px 6px;
	width:116px;

	/* Rounded Corners */
	-moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -khtml-border-radius: 5px;
    border-radius: 5px;
}
#menu li .greybox li:hover {
	background:#ffffff;
	border:1px solid #aaaaaa;
	padding:4px 6px 4px 6px;
	margin:0px 0px 4px 0px;
}


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1