469,276 Members | 1,571 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,276 developers. It's quick & easy.

Position a layer relative to a table cell and size it

1
I am pretty new to javascript and working with layers and have searched but found no answer to the following questions: How do I Position a layer relative to a cell in a table? Also how can I set the size of the layer based on the content?

I am putting together a site in ASP.Net and my client wants to have a button like they have on the amazon home page, where on mouseover a list of categories is shown. I have found code to show and hide the layer but nothing to show me how to position the layer or size it.

Thanks for the help!
Dec 3 '06 #1
1 1853
acoder
16,027 Expert Mod 8TB
Use the top and left properties to position the div/layer which can be positioned relatively or absolutely using "relative" and "absolute" respectively for the position property. To size the div, use the width and height properties. These can be set using CSS or using JavaScript via the Style object.
May 31 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Ken Kast | last post: by
1 post views Thread by Falc2199 | last post: by
14 posts views Thread by Zenobia | last post: by
1 post views Thread by thomasv | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.