Mark Weiss wrote:
> I have a simple need, which is to stack three divs on top of one
> another and as you click in the top one, have it go away and reveal
> the last two. Then when you click on that revealed div, have it also
> disappear and reveal the third. This is for an educational project.
> I have have a few questions that I imagine are simple.
> 1) Can a DIV by itself accept an onclick event? Or do you have to
> have text or an image tied to an HREF within the DIV to make that
> 2) In making a vertical grid of DIVS, is using absolute positioning
> proper way to set them up?
> Mark Weiss
Absolute positioning is not needed. As I see it, you might have 3
divisions with the same width, whose individual height is determined by
the content within each of them.
The expand/collape of divisions is done with "behavior": scripting--
See the layouts on this page for one way to handle the expand/collapse
And also see domCollapse here:
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/