Padding between divs...

Discussion in 'CSS' started by NewComputer, Feb 8, 2005.

Thread Status:
Not open for further replies.
  1. #1
    What is the correct coding for having three divs within a div, floating left, but then having say a 10px padding. I am having an outline around the three divs and want them to have a padding between them.
     
    NewComputer, Feb 8, 2005 IP
  2. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It sounds that you really want margins, not padding. Padding is inside and margins are on the outside of an element.

    J.D.
     
    J.D., Feb 8, 2005 IP
Thread Status:
Not open for further replies.