Drop Menu Help

This is a discussion on "Drop Menu Help" within the Web Page Design section. This forum, and the thread "Drop Menu Help are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 2nd, 2005, 06:13
Junior Member
Join Date: May 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Drop Menu Help

Ok, I cant seem to position this menu I have. I got the source from another place, and am not sure where to check if they showed how to position it. The code :

ul {
top: 350px;
margin: 0;
padding: 0;
list-style: none;
width: 150px;
}

ul li {
position: relative;
}

li ul {
position: absolute;
left: 149px;
top: 0;
display: none;
}

ul li a {
display: block;
text-decoration: none;
color: #777;
background: #fff;
padding: 5px;
border: 1px solid #ccc;
border-bottom: 0;
}

ul {
top: 350px;
margin: 0;
padding: 0;
list-style: none;
width: 150px;
border-bottom: 1px solid #ccc;
}

li:hover ul { display: block; }

ANd the menu...

<ul> [*]Home [*]About
<ul> [*]History [*]Team [*]Offices [/list] [*]Services
<ul> [*]Web Design [*]<a href="#">Internet
Marketing</a> [*]Hosting [*]Domain Names [*]Broadband [/list] [*]Contact Us
<ul> [*]United Kingdom [*]France [*]USA [*]Australia [/list] [/list]

I want to position it down about 350 px from the top. Everytime I use the position: absolute;
top: 350px;
code the menu stops working. When I mouse over the content nothing drops out. Anysolution to position this and keep it working?? I am stuck. Thanks for any help.
Reply With Quote

  #2 (permalink)  
Old Jul 13th, 2005, 17:56
New Member
Join Date: Jul 2005
Location: UK
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to johnk Send a message via Yahoo to johnk
instead of trying to apply an absolute position to a generic element, you should use a class and hold the menu in between <div> brackets

Code: Select all
.dropmenu{position:absolute;top:350px;left:150px;}

<div class="dropmenu"></div>
Reply With Quote
Reply

Tags
drop, menu, help

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop-down Menu kaz JavaScript Forum 7 May 23rd, 2007 10:05
I have a normal css menu, but want ot add drop down menu to it multichild Web Page Design 7 Jan 9th, 2007 16:07
Drop down menu ... Drysdale Web Page Design 3 Jul 21st, 2005 22:00
help with drop menu makemesick JavaScript Forum 8 Apr 25th, 2005 21:19
drop menu help makemesick JavaScript Forum 2 Apr 23rd, 2005 05:48


All times are GMT. The time now is 00:30.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43