It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Div tags - positioning of...

Div tags - positioning of...

Postby john-86 on Fri Nov 25, 2005 9:43 am

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
john-86
 
Posts: 7
Joined: Fri Nov 25, 2005 9:29 am
Location: UK

Postby john-86 on Fri Nov 25, 2005 9:56 am

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
john-86
 
Posts: 7
Joined: Fri Nov 25, 2005 9:29 am
Location: UK

Postby webmaster on Fri Nov 25, 2005 3:23 pm

Hi and welcome to DEVPPL

Can you show us the code and maybe a page where you test it on?
Make sure to check out our TNX Review and Link Vault Review
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden

Postby john-86 on Fri Nov 25, 2005 3:30 pm

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

Regards,
John
john-86
 
Posts: 7
Joined: Fri Nov 25, 2005 9:29 am
Location: UK


Who is online

Users browsing this forum: No registered users and 4 guests