Log in

View Full Version : Divs (+REP)



Jackboy
09-06-2008, 07:14 AM
If i wanted to have say 3 divs all ontop of each other, makin it easy to use with scriptaculous...

Anyway say i had

<div>PAGE 1</div>
<div>PAGE 2</div>
<div>PAGE 3</div>

How would i go about making page 2 and 3 invisible and have them all on top of each other, display:hidden to make it hide i think :S

Im css noob see, find php much easier

Florx
09-06-2008, 08:04 AM
<div>PAGE 1</div>
<div style="display: none;">PAGE 2</div>
<div style="display: none;">PAGE 3</div>

Jackboy
09-06-2008, 04:24 PM
<div>PAGE 1</div>
<div style="display: none;">PAGE 2</div>
<div style="display: none;">PAGE 3</div>

Cheers, but they are below one another and not directly on top...

Independent
09-06-2008, 04:32 PM
<div style="position: absolute; width: 100px; height: 100px; z-index: 1; left: 81px; top: 4px" id="layer3">
&nbsp;</div>
<div style="position: absolute; width: 100px; height: 100px; z-index: 1; left: 81px; top: 4px" id="layer2">
&nbsp;</div>
<div style="position: absolute; width: 100px; height: 100px; z-index: 1; left: 81px; top: 4px" id="layer1">
&nbsp;</div>


You'll have to fiddle with the position though.

Jackboy
09-06-2008, 05:45 PM
Chers to both of you, i will have a go with it at a later date ;)

Want to hide these adverts? Register an account for free!