Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 5 of 5

Thread: Divs (+REP)

  1. #1
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default Divs (+REP)

    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

  2. #2
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    HTML Code:
    <div>PAGE 1</div>
    <div style="display: none;">PAGE 2</div>
    <div style="display: none;">PAGE 3</div>

  3. #3
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by JH View Post
    HTML Code:
    <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...

  4. #4
    Join Date
    Dec 2007
    Posts
    1,683
    Tokens
    0

    Latest Awards:

    Default

    HTML Code:
    <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.

  5. #5
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Chers to both of you, i will have a go with it at a later date

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •