> I'm trying to design drop-down menus using CSS. If I
> knew exactly where the menus were to appear, it would
> be easy using absolute positioning and the visibility
> property.

There are a lot of really good canned scripts out there. One of those will
probably do everything your looking to do. Don't underestimate the amount of
time you will spend debugging DHTML in the different browsers.

> Unfortunately, the menus must be placed relative to a
> table. The table is centered on the page, and it's
> width isn't always the same. The menus must be aligned
> with this table. When I use relative positioning, the
> menu appears in the right place, but it is positioned
> inline with the rest of the page. Rather than
> overlapping with the elements below it, it simply
> pushes them lower and makes room for itself.

That is how relative positioning works. It appears logically in the context
of where it is coded. Fixed positioning would take the menus out of the
context in which they are coded and make the menus relative to the corner of
the browser. However, this is not exactly what you are looking to do.

You will want to make a layer within your table that is positioned
relatively. This layer should be where you want the menus to appear. Within
this layer, you will create separate layers for each of your menus and give
them an absolute position.

Declaring the position as absolute has a similar effect to fixed, however
the element is positioned relative to the top left corner of the next layer
up. In the absence of another layer, they will appear positioned against the
top left corner of the browser window.

> I can't seem to get the menu to float "above" the
> picture below it. I tried the z-index property to no
> avail.

You need to declare absolute or fixed positioning to take the menu out of
the logical context in which the page was coded.

> For a sample of my problem (and a stunning picture of
> some cable tv stuff), visit
> http://it.wm.edu/network/csshelp.htm.

Couldn't get to the page.

> Please let me know if this is possible!

Definitely possible. Have a look around the Internet and you will see that
there are many people doing this.

> Thanks!

No problem. :)

Benjamin S. Rogers
Web Developer, c4.net
Voice: (508) 240-0051
Fax: (508) 240-0057


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to