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 7 of 7
  1. #1
    Join Date
    Jun 2008
    Location
    West midlands, Birmingham.
    Posts
    2,093
    Tokens
    219

    Latest Awards:

    Default When using padding it repeats the div (image)??

    Hey

    Im currently coding a layout and when Im using padding-bottom/padding-left it repeats the image instead of actually making space?

    How can I stop/fix this?

    Cheers! Help appreciated!

  2. #2
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    try margin instead. Padding just affects content within a div.. I think.
    Chippiewill.


  3. #3
    Join Date
    Jun 2008
    Location
    West midlands, Birmingham.
    Posts
    2,093
    Tokens
    219

    Latest Awards:

    Default

    Quote Originally Posted by Chippiewill View Post
    try margin instead. Padding just affects content within a div.. I think.
    It worked, thanks! Cant believe I didnt think of that in first place lol, +rep

  4. #4
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    Quote Originally Posted by iDenning View Post
    It worked, thanks! Cant believe I didnt think of that in first place lol, +rep
    I only remembered because I always screw it up myself
    Chippiewill.


  5. #5
    Join Date
    Jan 2011
    Location
    Manchester, UK
    Posts
    268
    Tokens
    93
    Habbo
    Intuitional

    Latest Awards:

    Default

    Margin is outside
    Padding is inside


    Thanks to Kasabian for this lovely sig!

  6. #6
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    You could also fix this with the CSS background repeat property... assuming you're talking about the background.

    http://www.w3schools.com/cssref/pr_b...und-repeat.asp
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  7. #7
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    4,753
    Tokens
    1,860
    Habbo
    ,Alpha,

    Latest Awards:

    Default

    I think you can correct it by modifying the Width in terms of the padding. So if you have 5px padding your subtract 5px of the width of the image.

Posting Permissions

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