Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
The difference between padding and margin?
Old 11-13-2009, 09:27 PM The difference between padding and margin?
jonyroufe's Avatar
Novice Talker

Posts: 5
Name: jony roufe
Trades: 0
can someone explain what is the difference between padding and margin?
I always thought it was the same thing..
__________________
:) All welcome to visit my
Please login or register to view this content. Registration is FREE
site!
jonyroufe is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-13-2009, 10:09 PM Re: The difference between padding and margin?
webwest's Avatar
Experienced Talker

Posts: 42
Name: Dan Whims
Location: Los Angeles, CA
Trades: 0
http://lmgtfy.com/?q=html+padding+margin
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

One-stop Web Development Shop since 1995
webwest is offline
Reply With Quote
View Public Profile Visit webwest's homepage!
 
Old 11-13-2009, 10:32 PM Re: The difference between padding and margin?
Junior Talker

Posts: 1
Name: ada
Trades: 0
bookmarked and b back l8er,i need more info, :-)
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
soubatval is offline
Reply With Quote
View Public Profile
 
Old 11-13-2009, 11:45 PM Re: The difference between padding and margin?
Banned

Posts: 315
Name: Doug
Trades: 1
Margin is the space outside a Div or other container element,
Padding is the space inside an element.
marketingman100 is offline
Reply With Quote
View Public Profile
 
Old 11-14-2009, 04:29 PM Re: The difference between padding and margin?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Umm.. that's not correct either. I suggest you read up on the box model:

http://www.w3.org/TR/CSS2/box.html

You'll see in the diagram, padding and margin BOTH are on the OUTSIDE of an element.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-14-2009, 07:21 PM Re: The difference between padding and margin?
Banned

Posts: 315
Name: Doug
Trades: 1
LNR,

I just looked at that link you referenced and it CLEARLY shows Margin OUTSIDE the box and padding INSIDE the box.

Which is exactly what I said.
marketingman100 is offline
Reply With Quote
View Public Profile
 
Old 11-14-2009, 08:08 PM Re: The difference between padding and margin?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Not quite,

the margin is outside the border which is inside the "box".

What so many people think of as the "box" is just the content area. The box itself is the actually the overall dimensions of the element, which includes the margins
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to The difference between padding and margin?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24541 seconds with 12 queries