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 4 of 4
  1. #1
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default Image Positioning Help - HTML/CSS



    How do I get the text to line up with the icon/image?
    Vouches
    [x][x]

  2. #2
    Join Date
    Aug 2008
    Location
    Australia!
    Posts
    33
    Tokens
    0

    Default

    Yea, this is a problem I've come across too. Easy solution:
    Add this code to your IMG tags.

    style="margin-bottom:-3px;"

    Should work a treat.

  3. #3
    Join Date
    May 2008
    Posts
    1,160
    Tokens
    11

    Latest Awards:

    Default

    Maybe show us the code you're dealing with?
    Previously a Habbo fanatic, web designer/developer, fansite owner, & trusted member of the community.

  4. #4
    Join Date
    Mar 2005
    Location
    London
    Posts
    4,402
    Tokens
    3,894
    Habbo
    Intricat

    Latest Awards:

    Default

    Make the menu in a div wrapper and then position that, so you should have something like this:

    HTML:
    <div id="redbar">
    <div id="house">
    </div>
    <div id="home">
    Home
    </div>
    </div>

    Then your CSS would be this:

    #redbar{
    background-image:RED BAR IMAGE URL
    width:X px;
    height:X px;
    margin-left:X px;
    margin-top:X px;
    floateft;
    }

    You would also have the same then for the icon but changing #redbar to #house

    For the text it would be a similar setup aswell. You would just set the top and left margin to value that center the text where you want it.

    I hope this helps
    Last edited by Kieran; 01-03-2009 at 11:06 AM.

Posting Permissions

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