Results 1 to 6 of 6

Thread: Coding Help

  1. #1
    Join Date
    Feb 2008
    Location
    London, UK
    Posts
    15,747
    Tokens
    25,786
    Habbo
    Mr-Trainor

    Latest Awards:

    Default Coding Help

    Ok, so I'm learning how to code (lol ). I've started off with a simple Habbo-content box (expandable) which can be seen here:
    ~ http://www.clubpixels.co.uk/mr-trainor/content/box1/content.html

    As you can see, the text from the top line (not the content box title), goes in to the border. How would I go about preventing this from happening? Might sound like a stupid question

    Also, if there's any tutorials on how to code layouts with a content box in the middle and then more too the sides, hopefully you know what I mean , then I would appreciate links

    +rep if you help,
    Mr-Trainor.
    Last edited by ReviewDude; 14-04-2009 at 12:47 PM.

    Not online very often

  2. #2
    Join Date
    Feb 2008
    Location
    London, UK
    Posts
    15,747
    Tokens
    25,786
    Habbo
    Mr-Trainor

    Latest Awards:

    Default

    Someone help pls.
    Would I have to slice of the sides and make them seperate images? Because that wasn't in the tut

    Not online very often

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

    Latest Awards:

    Default

    You'd have to add side padding to the css of the side image.

    padding-left: #px;
    padding-right: #px;

    OR

    You could use short-hand padding
    padding: 0px; #px; 0px; #px;
    Clockwise starting at top.
    I find doing each side is easiest, as it is easier to read in the end.
    Previously a Habbo fanatic, web designer/developer, fansite owner, & trusted member of the community.

  4. #4
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    padding: 5px;
    then reduce the width by 10px; (for firefox)

  5. #5
    Join Date
    Feb 2008
    Location
    London, UK
    Posts
    15,747
    Tokens
    25,786
    Habbo
    Mr-Trainor

    Latest Awards:

    Default

    Quote Originally Posted by Cushioned View Post
    You'd have to add side padding to the css of the side image.

    padding-left: #px;
    padding-right: #px;

    OR

    You could use short-hand padding
    padding: 0px; #px; 0px; #px;
    Clockwise starting at top.
    I find doing each side is easiest, as it is easier to read in the end.
    Thanks alot
    (I used 1st one as well).

    Quote Originally Posted by Blob View Post
    padding: 5px;
    then reduce the width by 10px; (for firefox)
    This one added padding round all 4 sides so I used the method above instead

    +rep to both of you.

    edit: cant give rep to any of you because ive recently given it too you
    Last edited by Mr-Trainor; 14-04-2009 at 10:24 AM.

    Not online very often

  6. #6
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by Mr-Trainor View Post
    Thanks alot
    (I used 1st one as well).



    This one added padding round all 4 sides so I used the method above instead

    +rep to both of you.

    edit: cant give rep to any of you because ive recently given it too you
    Yeah, thats what its supposed to do, so its not at the sides and not stuck to the top aswell.

Posting Permissions

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