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 9 of 9

Thread: Little help?:D

  1. #1
    Join Date
    Feb 2008
    Location
    Plymouth
    Posts
    1,073
    Tokens
    0

    Latest Awards:

    Default Little help?:D

    Hey if I wanted to align a header right at the top of the page. Just under the url bar what would be the code in CSS or HTML - If any?
    I've tried <div align="top"><div id="header"></div> But for some reason it leave a gap at the top of the page. :S Help? +REP to anyone who helps

  2. #2
    Join Date
    Feb 2005
    Location
    Sheffield
    Posts
    2,288
    Tokens
    1,686

    Latest Awards:

    Default

    Quote Originally Posted by iGOboy View Post
    Hey if I wanted to align a header right at the top of the page. Just under the url bar what would be the code in CSS or HTML - If any?
    I've tried <div align="top"><div id="header"></div> But for some reason it leave a gap at the top of the page. :S Help? +REP to anyone who helps
    It you want a right aligned header it would need to be

    Code:
    <div align="right" id="header" style="margin: 0px;"></div>
    Last edited by Pawf; 03-03-2008 at 06:04 PM. Reason: Added [code] tags

  3. #3
    Join Date
    Dec 2006
    Posts
    7,601
    Tokens
    95

    Latest Awards:

    Default

    you add margin-top: 0px; into the body tag

  4. #4
    Join Date
    Feb 2008
    Location
    Plymouth
    Posts
    1,073
    Tokens
    0

    Latest Awards:

    Default

    Lmao I'm so dumb +REP to both if I can

  5. #5
    Join Date
    Dec 2007
    Posts
    325
    Tokens
    0

    Default

    lol n00b

  6. #6
    Join Date
    Dec 2006
    Posts
    7,601
    Tokens
    95

    Latest Awards:

    Default

    Quote Originally Posted by Danny View Post
    lol n00b
    you have to start at some time and learning basics is necessary

  7. #7
    Join Date
    Feb 2008
    Location
    Plymouth
    Posts
    1,073
    Tokens
    0

    Latest Awards:

    Default

    How am I a noob? I'm learning. -Rep to you

  8. #8
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    Just add
    body, html {
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    }

    If you want to make everything touch the edges.


  9. #9
    Join Date
    Jan 2008
    Location
    England
    Posts
    285
    Tokens
    0

    Default

    Margin/Padding/Border needs to be set to zero so it's as close to the edge as possible, this should logicly make it so it's touching the edge.

    Hope I helped.

Posting Permissions

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