Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Div tags - positioning of...



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> HTML Forum
View previous topic :: View next topic  
Author Message
john-86



Joined: 25 Nov 2005
Posts: 7
Location: UK

PostPosted: Fri Nov 25, 2005 10:43 am    Post subject: Div tags - positioning of... Reply with quote

Hello all, I was wondering if someone would be kind enough to give me hand. I've just been learning HTML & JavaScripts for my first website which I am developing for work.
I have my entire structure inside a table (sometimes a table nested within that) which has the central alignment property so that when the window's resized the page moves to the middle.
On the left hand side of my page, I have a vertical navigation bar (buttons listed downwards) which are all images. When one button is clicked I would like a drop down menu (a DIV with images inside) to toggle beside the button that was clicked. This isn't a problem. I can align the DIV to the button, but when the page is resized the DIV stays stationary and can completely cover the button. Would it be better to have a mouse exit trigger for this?
I thought the way to fix this would be to change the style of the layer to have the position="relative" property, but when I do this my whole layout goes nuts! The best way I can think of describing it is that it tries to take the contents of the DIV, & effectively remove the layer, and tries to wedge them into the coordinates given - strange.
I'd really appreciate any help anyone can offer.

Many thanks,
John
Back to top
View user's profile Send private message
john-86



Joined: 25 Nov 2005
Posts: 7
Location: UK

PostPosted: Fri Nov 25, 2005 10:56 am    Post subject: Re: Div tags - positioning of... Reply with quote

Sorry to double post, just to update the situation. Now when I change the style of the layer to "position: relative;" It still acts like the "absolute" positioning. The only difference is the DIV box gets horizontally larger...

Oh, and if it's of any help - I'm using Adobe GoLive CS.

Thanks again
Back to top
View user's profile Send private message
webmaster
Site Admin


Joined: 17 Aug 2004
Posts: 3642
Location: Sweden

PostPosted: Fri Nov 25, 2005 4:23 pm    Post subject: Re: Div tags - positioning of... Reply with quote

Hi and welcome to DEVPPL

Can you show us the code and maybe a page where you test it on?
Back to top
View user's profile Send private message Visit poster's website
john-86



Joined: 25 Nov 2005
Posts: 7
Location: UK

PostPosted: Fri Nov 25, 2005 4:30 pm    Post subject: Re: Div tags - positioning of... Reply with quote

Thanks webmaster! I shall get a copy up n running on monday and post with the link.

Regards,
John
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> HTML Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap