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

Thread: Help

  1. #1
    Join Date
    Jun 2007
    Posts
    1,757
    Tokens
    105

    Latest Awards:

    Default Help

    Im coding with divs using dw, when i do padding 14px it goes like this

    The background repeats, Why? And how do i fix it?

    ++REP
    Get back imma let my gat go,
    got a itchy finger... imma leave a fat hole.
    - Giggs :: Ruthless Freestyle

    I owe rep to - .:Jack120:. HabbDance

  2. #2
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    Take away the padding height from the div height you currently have .
    It's just the way the CSS is programmed to behave.

  3. #3
    Join Date
    Jun 2007
    Posts
    1,757
    Tokens
    105

    Latest Awards:

    Default

    Quote Originally Posted by --ss-- View Post
    Take away the padding height from the div height you currently have .
    It's just the way the CSS is programmed to behave.
    Ty rep, but now i have another prob, i make the margin of my top bar 0px from the top, and it stays where it is. Here's the code

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Box</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <style type="text/css">
    <!--
    .style1 {
        font-family: Verdana;
        font-size: 11px;
        color: #FFFFFF;
    }
    a:link {
        color: #FFFFFF;
        text-decoration: none;
    }
    a:visited {
        text-decoration: none;
        color: #FFFFFF;
    }
    a:hover {
        text-decoration: none;
        color: #FFFFFF;
        font-weight: bold;
    }
    a:active {
        text-decoration: none;
        color: #FFFFFF;
    }
    body {
      text-align: center;
      background-image:;
    }
    #container {
        width: 950px;
        height: 38px;
        left: 50px;
        margin-top: 0px;
        margin-left: 30px;
    }
    #top_bar {
        background-image: url(images/top_bar.PNG);
        height: 24px;
        width: 950px;
        float-top: 0px;
        padding-top: 14px;
        margin: 0px;
    }
    #banner {
      background:url(images/banner1.PNG);
       width: 950px;
      height: 134px;
    }
    
    -->
    </style>
    </head>
    <body>
    <div id="container">
      <div class="style1" id="top_bar">This website is best viewed in <a href="http://www.mozilla.com/en-US/firefox/">Mozilla Firefox</a>.</div>
      <div id="banner">
      
      
    
        <p>&nbsp;</p>
      </div>
    </div>
    </body>
    </html>
    Get back imma let my gat go,
    got a itchy finger... imma leave a fat hole.
    - Giggs :: Ruthless Freestyle

    I owe rep to - .:Jack120:. HabbDance

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

    Latest Awards:

    Default

    or add background-repeat: no-repeat;

    EDIT:

    add

    margin-top: 0px;

    into the body tag
    Last edited by kk.; 21-03-2008 at 02:48 PM.

Posting Permissions

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