Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
How to control position of drop-down menu?
Old 06-22-2008, 05:41 PM How to control position of drop-down menu?
Average Talker

Posts: 19
Trades: 0
Hey, folks,

I'm putting together a web page with drop-down menus. I'm using a javascript for that which looked great on my first menu. Now, I've added another drop-down menu to my navigation bar, but the new menu appears in the wrong position horizontally -- all the way over to the left...same as my first menu. If you want to check this test page out, it's at http://tinyurl.com/5svlxn . (The first menu's at "go shopping" and the second is at "blogs.")

I'm over my head here. Suggestions, anyone?

I.
ibexslam is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-23-2008, 12:49 PM Re: How to control position of drop-down menu?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
With CSS
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 06-23-2008, 01:27 PM Re: How to control position of drop-down menu?
Average Talker

Posts: 19
Trades: 0
No kidding?
ibexslam is offline
Reply With Quote
View Public Profile
 
Old 06-23-2008, 03:05 PM Re: How to control position of drop-down menu?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Nope, no kidding.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 06-24-2008, 05:19 PM Re: How to control position of drop-down menu?
Average Talker

Posts: 19
Trades: 0
I guess I might just have to hire a helpful person. It's a shame there don't seem to be any of those here.

I.
ibexslam is offline
Reply With Quote
View Public Profile
 
Old 06-24-2008, 05:29 PM Re: How to control position of drop-down menu?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Sorry, it was my way of saying that it isn't a javascript problem.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 06-25-2008, 06:46 PM Re: How to control position of drop-down menu?
Average Talker

Posts: 19
Trades: 0
Alright, then...I'll move this question to the CSS section over here:
http://www.webmaster-talk.com/css-fo...tml#post743520
ibexslam is offline
Reply With Quote
View Public Profile
 
Old 06-25-2008, 09:48 PM Re: How to control position of drop-down menu?
Average Talker

Posts: 19
Trades: 0
OK, fine, they just deleted the other thread.

Anyway.

Never mind.

I noticed that the drop-down menus were sticking to the left edge of the cells they were in, so I put each link inside its own cell so the menus would be "captured" in the cells. Requires some fiddling, but it works.

I.
ibexslam is offline
Reply With Quote
View Public Profile
 
Old 06-25-2008, 09:48 PM Re: How to control position of drop-down menu?
Novice Talker

Posts: 6
Name: Marc
Location: England
Trades: 0
I took a look at the script you are using, the source where you downloaded the script from is contained inside <li> tags, which are floated, currently your submenus are absolutely positioned to the parent elements, which as far as i can imagine would be the <table> elements. I would advise moving away from tables and using <ul> and <li> elements like in the example. I have a similar version of this menu on my site, you could take a look at that if you wanted.

Personally i would have posted this question here as you did oringinally, as my script uses javascript to position the submenu depending on client widths of the parent elements.

Hope this helps you.

Marc
Marc.Qualie is offline
Reply With Quote
View Public Profile Visit Marc.Qualie's homepage!
 
Reply     « Reply to How to control position of drop-down menu?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28382 seconds with 12 queries