Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 7th, 2004, 08:20 PM
marooshka marooshka is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Denver, Co
Posts: 2 marooshka User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to marooshka
move hidden div with page relative to mouseover link

I have a horizontal nav made of images. Two images have mouseovers that make a hidden dropdown div visible. I can easily make this div absolute, but the nav is centered and therefore moves with the page. How do I move the div relative to the image that is activating it?

Reply With Quote
  #2  
Old January 8th, 2004, 12:12 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Try this link - http://www.stopdesign.com/also/articles/absolute/

Essentially, to enable relative positioning, your item needs a parent to base it's position attributes off. In your case, it's the nav image.
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #3  
Old January 9th, 2004, 05:38 PM
marooshka marooshka is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Denver, Co
Posts: 2 marooshka User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to marooshka
different layout between local and live

Putting an absolute div inside a relative and trying to give left or right values did not work. The nested div ended up being placed according to the browser window, not the div it was nested in. I finally got everything working in the header (an include for my other pages). When I uploaded the header and looked at it by itself, the drop down would show up in the correct horizontal spot, but was way over to the right - even though the exact same file looked perfect on my computer. Also, when I looked at a file that included the header, the dropdowns didn't show at all - and the mouseovers for imageswaps didn't work either. All of this worked fine when I was setting the dropdowns to a set position on the screen, but now that I am trying to get them to move with the nav, nothing is working right.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > move hidden div with page relative to mouseover link


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT