1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Should I use margins or padding?

Discussion in 'CSS' started by kelp, Oct 10, 2005.

Thread Status:
Not open for further replies.
  1. #1
    Let's say you have an outer element and an inner element. You want to create a 10px space between the outer and inner element. Is it better to set 10px margins on the inner element or 10px padding on the outer element?
     
    kelp, Oct 10, 2005 IP
  2. nullbit

    nullbit Peon

    Messages:
    489
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #2
    nullbit, Oct 10, 2005 IP
  3. daskin sorge

    daskin sorge Guest

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Please think about one box. When the part where the color adheres is left when sweetening the pie to the background and space is made, it becomes padding.
     
    daskin sorge, Apr 23, 2006 IP
Thread Status:
Not open for further replies.