| View previous topic :: View next topic |
| Author |
Message |
john-86
Joined: 25 Nov 2005 Posts: 7 Location: UK
|
Posted: Fri Nov 25, 2005 10:43 am Post subject: Div tags - positioning of... |
|
|
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 |
|
 |
|
|
john-86
Joined: 25 Nov 2005 Posts: 7 Location: UK
|
Posted: Fri Nov 25, 2005 10:56 am Post subject: Re: Div tags - positioning of... |
|
|
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 |
|
 |
webmaster Site Admin

Joined: 17 Aug 2004 Posts: 3589 Location: Sweden
|
Posted: Fri Nov 25, 2005 4:23 pm Post subject: Re: Div tags - positioning of... |
|
|
Hi and welcome to DEVPPL
Can you show us the code and maybe a page where you test it on? |
|
| Back to top |
|
 |
john-86
Joined: 25 Nov 2005 Posts: 7 Location: UK
|
Posted: Fri Nov 25, 2005 4:30 pm Post subject: Re: Div tags - positioning of... |
|
|
Thanks webmaster! I shall get a copy up n running on monday and post with the link.
Regards,
John |
|
| Back to top |
|
 |
|