Click to See Complete Forum and Search --> : tabbed pane


ygmarchi
07-15-2003, 04:32 PM
I'm trying to write a tabbed pane in dhtml.

I'm facing this problem:

Either

1) I use absolute positining and z-index for the tabs, but
in this case the tabs are taken out of normal flow and so
the parent cannot resize automatically to the size of its content (it needs a fixed sise)

Or

2) I use the display attribute of the tabs, but in this
case when the user changes the active tab the whole
tabbed pane gets resized, which is awful.

I cannot rely on knowing the size of children nodes
for dinamically compute the size to be assigned to
the tabbed pane.

Anybody knows a solution?

Thank you in advance,
carlo.

fla5hba5h
07-17-2003, 04:52 PM
Try specifing the height and width of the div to the same size.
If it gets too big, set the overflow to auto.

ygmarchi
07-18-2003, 01:58 AM
Specifying a fixed length was what a was trying to avoid.

I managed to achive some risults by using a tr and tds for
the tabs and setting the width of the tabs to be hidden to zero
width visibility: hidden. The tabbed pain now both senses it's content size and doesn't resize in height when the active tab is changed.

The width must still be specified.

carlo.