Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2009
    Location
    South Wales.
    Posts
    377
    Tokens
    50

    Default Can somebody help me with this padding problem. REP+

    I've been bored today and I decided to code a layout. And I seem to have this problem with the layouts padding. Can anybody help me please?

    My problem:

    Direct Link: http://hufile.cc/1272895607.png

    Code:
    #djsays {
      background: url(djsays.png);
      height: 30px;
      text-align: left;
      padding-left: 75px;
      padding-top: 7px;
      color:white;
    }


  2. #2
    Join Date
    Nov 2008
    Location
    Cambridge, UK
    Posts
    901
    Tokens
    100

    Default

    Quote Originally Posted by jacko2244 View Post
    I've been bored today and I decided to code a layout. And I seem to have this problem with the layouts padding. Can anybody help me please?

    My problem:

    Direct Link: http://hufile.cc/1272895607.png

    Code:
    #djsays {
      background: url(djsays.png);
      height: 30px;
      text-align: left;
      padding-left: 75px;
      padding-top: 7px;
      color:white;
    }
    If the intended final height is 30px, you need to subtract 7px padding off the height. Height is made up of height and padding. It's best to put a no-repeat attachment on the background too
    we're smiling but we're close to tears, even after all these years

  3. #3
    Join Date
    Aug 2009
    Location
    South Wales.
    Posts
    377
    Tokens
    50

    Default

    Thanks! REP+


Posting Permissions

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