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 8 of 8
  1. #1
    Join Date
    Apr 2008
    Location
    Derby
    Posts
    4,668
    Tokens
    262

    Latest Awards:

    Default CSS Help - Turning background pictures into links

    Hey!
    Im using one of the free layouts off of HabboArchive to play around with PHP and integration, and im no good with CSS/Div's

    The layout im using is this one:
    http://habboarchive.net/layout/layouts/layout_16/
    How would i get the tabs at the top clickable (I know how to do iframes and things, its just i dont see how you could make them clickable)

    Nav Coding is this:
    HTML Code:
    <div class="container">
    <div class="banner"></div>
    <div class="nav">
    <div class="spacer_left"></div>
    <div class="home"></div>
    <div class="home_spacer"></div>
    <div class="site"></div>
    <div class="site_spacer"></div>
    <div class="radio"></div>
    <div class="radio_spacer"></div>
    <div class="news"></div>
    <div class="news_spacer"></div>
    <div class="events"></div>
    <div class="events_spacer"></div>
    <div class="forum"></div>
    <div class="forum_spacer"></div>
    </div>

    Thanks for any help!
    Back for a while

  2. #2
    Join Date
    Oct 2008
    Location
    Cornwall
    Posts
    22
    Tokens
    0

    Default

    HTML Code:
    <div class="container">
    <div class="banner"></div>
    <div class="nav">
    <div class="spacer_left"></div>
    <a href="link" target="iframe"><div class="home"></div></a>
    <div class="home_spacer"></div>
    <a href="link" target="iframe"><div class="site"></div></a>
    <div class="site_spacer"></div>
    <a href="link" target="iframe"><div class="radio"></div></a>
    <div class="radio_spacer"></div>
    <a href="link" target="iframe"><div class="news"></div></a>
    <div class="news_spacer"></div>
    <a href="link" target="iframe"><div class="events"></div></a>
    <div class="events_spacer"></div>
    <a href="link" target="iframe"><div class="forum"></div></a>
    <div class="forum_spacer"></div>
    </div>

    Not sure what you mean, but if you mean make the navigation link, that should work.

  3. #3
    Join Date
    Apr 2008
    Location
    Derby
    Posts
    4,668
    Tokens
    262

    Latest Awards:

    Default

    I tried something similar to that and it didnt work, now it does, so thanks alot!
    Back for a while

  4. #4
    Join Date
    Jul 2008
    Location
    Devon
    Posts
    290
    Tokens
    0

    Default

    Quote Originally Posted by KreativeKid View Post
    HTML Code:
    <div class="container">
    <div class="banner"></div>
    <div class="nav">
    <div class="spacer_left"></div>
    <a href="link" target="iframe"><div class="home"></div></a>
    <div class="home_spacer"></div>
    <a href="link" target="iframe"><div class="site"></div></a>
    <div class="site_spacer"></div>
    <a href="link" target="iframe"><div class="radio"></div></a>
    <div class="radio_spacer"></div>
    <a href="link" target="iframe"><div class="news"></div></a>
    <div class="news_spacer"></div>
    <a href="link" target="iframe"><div class="events"></div></a>
    <div class="events_spacer"></div>
    <a href="link" target="iframe"><div class="forum"></div></a>
    <div class="forum_spacer"></div>
    </div>

    Not sure what you mean, but if you mean make the navigation link, that should work.
    I didn't think that was valid? Merrr.

    You could also used
    [code]<a href="page.html" class="home"></a>[/link]

    and then in the CSS from the home rule

    Code:
    position: absolute;

  5. #5
    Join Date
    Apr 2008
    Location
    Derby
    Posts
    4,668
    Tokens
    262

    Latest Awards:

    Default

    It works :L
    So i dont mind, but thanks for your help anyway :L
    Back for a while

  6. #6
    Join Date
    Feb 2009
    Location
    London
    Posts
    935
    Tokens
    100
    Habbo
    Sameer!

    Latest Awards:

    Default

    This also helped me as I am still learning CSS.

  7. #7
    Join Date
    Jun 2005
    Location
    UK
    Posts
    2,387
    Tokens
    50

    Latest Awards:

    Default

    Quote Originally Posted by Obulus View Post
    It works :L
    So i dont mind, but thanks for your help anyway :L
    Using <b> and <i> tags also works... but it doesn't make it right. Seriously, why are kids fascinated by iframes?

  8. #8
    Join Date
    Nov 2006
    Location
    Narrich
    Posts
    5,687
    Tokens
    0
    Habbo
    Jamesy...

    Latest Awards:

    Default

    You would add

    Code:
    onclick="location.href='http://www.example.com';" style="cursor:pointer;"
    into the div tags.
    Ex-janitor. Might pop in from time to time, otherwise you can grab all my information from http://jamesy.me.uk/

Posting Permissions

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