HomeОбразованиеRelated VideosMore From: Kori Ashton

Difference between Padding & Margin in CSS

0 ratings | 25726 views
Have you ever wondered what the difference between Padding and Margin is in CSS? Here's a great video that explains Content, Padding, Border & Margin. We even touch on width settings! Padding is INSIDE a Div Class. Margin is BETWEEN Div Classes. Link to W3Schools - Try it yourself! http://www.w3schools.com/css/tryit.asp?filename=trycss_boxmodel_width More WordPress Videos: https://askkori.com/blog/ Full transcript here https://askkori.com/css/difference-padding-margin-css/ Tweet your questions to @KoriAshton
Html code for embedding videos on your blog
Text Comments (53)
Weaview TV (2 months ago)
Kori Ashton (2 months ago)
+Weaview TV Hahahaha!!! You’re awesome 😀
I Renka (4 months ago)
Excellent, thank you!
Kori Ashton (4 months ago)
Sure thing! Thanks for taking a moment to leave a kind comment!
Snafu (4 months ago)
Great tutroial, thank you so much for this!!
Kori Ashton (4 months ago)
Glad to help!
11swallowedinthesea (7 months ago)
Awesome! Thank you!
Kori Ashton (7 months ago)
You're welcome :)
Max Eisenhardt (8 months ago)
Thanks! Clean, clear and concise.
Kori Ashton (8 months ago)
Thank you!
Jessie Brig (9 months ago)
Nice Tutorial! Now I understand the difference of the four Elements.
Kori Ashton (8 months ago)
Way to go!! Thanks for leaving kind feedback.
fire boy (10 months ago)
My first Subscription ever...:)
Kori Ashton (10 months ago)
Wow!! That's an honor. Thank you!
Happy Shah (10 months ago)
You look like ellen!
Happy Shah (10 months ago)
Nice explanation anyways!THX!
Kori Ashton (10 months ago)
LOL - Yes I get that every once in a while.
Vaibhav Khobragade (1 year ago)
Nice explanation Kori :)
Joy Dhar (1 year ago)
Wow Really Nice Thanks a lot
Angela Litterio (1 year ago)
What code do I use to move  the margin of my site from the edges of the computer without messing up the post layout/menu/carousel slider (on home page) ?
Angela Litterio (1 year ago)
I need to indent my blog content on the opening page. The Pipdig theme didn't do that for me. (if you view the MARYLINE theme on their site, you'll see centered posts in example 1.) My posts run to the edge of the computer. How do I move the edge closer to the center? Or leave a white space between the computer and the posts? Thanks!
ZRealTDW // TDWilliam (1 year ago)
Thank you so much for this video, I've been trying to figure out the difference 😄
IT Expert (1 year ago)
Superb 😊😊😊😀
Wow what a great teacher you explain everything so perfect. you have a new follower
Verena Hoppl (1 year ago)
FINALLY I get it and it's so easy! Great job explaining!
Joseph Tembo (2 years ago)
Hey yo good job. Am CSS wiser, thanks.
Amal Omar (2 years ago)
Awesome! Thanks so much for the wonderful explanation. You're a very good teacher.
John Lu (4 months ago)
Cannot Agree More!!!
hamza ________ (2 years ago)
My English is not good but i was able to understood very well from your tutorial god bless you and subbed
juanlugofitness (2 years ago)
Thanks so much for the wonderful explanation
honzanoel (2 years ago)
Thank you! Thank you! So subscribing to you guys! I totally get it now....currently studying this..but one quick question. I'm freaking out slightly because the more I learn the more I worried that I'll forget everything I learned. What is the best way to keep it all in? Any recommendations? Thank you ; )
Cambo Technology (2 years ago)
very helpful and fun too <3
Two Guys (2 years ago)
too complex for me I am a MALE after all I gunna have to find a woman that knows how to make websites and MARRY her. Hmm, that doesn't mean she'll fix my website huh. Kindda like how I thought when I married a Filipina caregiver that is 22 years younger than me. She does nothing for me at all - she said PAY ME and I will help you.... oh well.. On my website my text look like this, it all looks like this So when I type my text looks like this Nice and clean with no huge spaces in-between my my words. And now when I press ENTER I have this HUGE SPACE everytime I press ENTER I have this HUGE SPACE is driving me nutz
Charles Gladue (11 months ago)
I design websites, give me a jingle!$$$
Gabriel Soto (1 year ago)
your post made me cringe so much
Jae Quan (1 year ago)
LMAO! Don't worry... you'll find her eventually. Maybe she'll even make you a sammich!
JacksBracket (2 years ago)
Flippy (2 years ago)
had to log in to say great job with this tutorial, you've got fantastic teaching skills
Roshan (2 years ago)
I just wish all teachers could teach like you.
Sameeha Rashid (2 years ago)
Thank you so much. I really understand the difference between margin and padding now.I can now create an effective design for my  website:)
Nayeem Badshah (2 years ago)
Thank you..
Nayeem Badshah (2 years ago)
Anabel C. (2 years ago)
Hi, thx a lot for this video is very helpful, and I do have a question... there is a space that according to your explanation can be identified as margin that I want to remove from the site that I starting to create using WP and Betheme. Tthe space is just below the slider and above the header because the header is the Below Slider one (located at the bottom), but I am not sure of what css to use so I can solve this. Can you help me?. I am just a beginer. I would appreciate it.
Anabel C. (2 years ago)
+WebTegrity thank you very much :)
kanwisher (2 years ago)
This helped me understand the difference between margin and padding.
Shine k.m (3 years ago)
very........................... good tutorial
Deorro Warrior (3 years ago)
This was cool
Muhammad Najat (3 years ago)
your voice is awesome and the way you explain as well
astrokmb1 (3 years ago)
I'm also an HTML newbie and I happened across this vid. when I was trying to understand a prob I had embedding a video and wrapping text around it. The problem was this: The video was aligned-right with text wrapped on the LHS and below. I could get the text to wrap fine, but using the "margin" cmd, the text butted up right against the LHS of the video no matter how large I made the LHS margin number. Poking around the internet I just stumbled on "padding" so I tried that on a whim, and it worked immediately. I've watched your video and another on the topic of margin vs. padding but I still don't understand why using "padding" added the space I wanted between the video an the text, but "margin" did not. Do you have any insight on this curious outcome?
Eddy (3 years ago)
Such an awesome tutorial. As a person who's REALLY bad and new to to this the tutorial helped a lot :) Thank you.
Palash Mistry (3 years ago)
that was great.and its help me
harambe money (2 years ago)
Palash Mistry wtf
Palash Mistry (3 years ago)

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.