2000web - Easy tricks in CSS

Discussion in 'HTML & Website Design' started by 2000web, Nov 7, 2009.

  1. #1
    Hi,

    When working with margin or padding in CSS - give CLOCKWISE VALUE
    padding: 0px 0px 0px 0x; (top right bottom left)
     
    2000web, Nov 7, 2009 IP
  2. akya

    akya Well-Known Member

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    148
    #2
    I knew this but thanks for sharing. Also I want add one more thing.
    If you use this property like this, padding: 5px 10px; These values will be repeated in the order mentioned above.
    i.e. padding: 5px 10px 5px 10px;
     
    akya, Nov 7, 2009 IP
  3. togu25

    togu25 Peon

    Messages:
    157
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i've been know this, but anyway thanks for sharing!
     
    togu25, Nov 7, 2009 IP
  4. 123funda

    123funda Member

    Messages:
    462
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    30
    #4
    thanks for shearing, can you plz tell me what will happen by this
     
    123funda, Nov 8, 2009 IP
  5. Deus Ex

    Deus Ex Peon

    Messages:
    531
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It will make the padding of your text fill the entire box at 0 px padding
     
    Deus Ex, Nov 9, 2009 IP
  6. dhaval300

    dhaval300 Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    thanks for sharing!
     
    dhaval300, Nov 9, 2009 IP