I am started to learning web design. I need a little help. Can anybody tell me what is the different between margin and padding
Whenever you are learning anything, Google is your best friend: http://lmgtfy.com/?q=difference+between+margin+and+padding Instant answers everytime......
Padding applies inside the rendering box, margin applies outside the rendering box. Now it is time to actually spend some learning instead of asking thing my 5-year old nephew can answer. There are thousands of sites offering basic tutorials; in many langusges, so the first skill you need to master is using a search engine to get "basic web development tutorials".
padding is space inside the boarder, margin is space outside the boarder. Remember these 3 points: The Margin is the extra space around the control. The Padding is extra space inside the control. The Padding of an outer control is the Margin of an inner control.
Actually not true on both a technical specification level and implementation level. Both parsing and rendering treat them differently, those on a conceptional level you can assume that model, but the model distorts and breaks down when you apply other properties like shadows, opacity, positioning, floats and others where there are parent child dependencies.
Ignore him mate, it's just something he copied and pasted from stackoverflow: http://stackoverflow.com/questions/5958699/difference-between-margin-and-padding/20755324#20755324 Like most who come here he doesn't really know what he's talking about.