NovaKid paper planes

When to use "margin" vs "padding"?

Liyana Razak
Liyana Razak
When to use "margin" vs "padding"?
Greetings) After attempting to tweak the layout of my personal blog, I got a bit stuck on when to use padding versus margin, and I hoped you might be able to help me out.
Liyana_Razak
1
Last update: 1 week ago
1 answers
Kate N
Kate N
Kate N - Tutor account
Near Native Speaker
Philippines

Hello! Margin is the space outside of a page element. Padding defines the space surrounding content within a web element. 

Padding:

  • Use padding within content areas such as articles, paragraphs, and divs to create breathing space around text and images. 
  •  Apply padding to boxes, cards, or sections that contain related content or widgets. 
  •  Padding around buttons and links improves their usability.

Margin

  •  Use margin to create spacing between different elements such as blog posts.
  •  Apply margin between the main content area and the sidebar to visually separate them. 
  •  Use margin around images and their captions to provide visual separation.

Hope this helps!

0
Last update: 4 months ago
Sign in
Don't have an account? Sign up now!
or sign in with email
By uploading your inquiries or questions, you agree with our Privacy Policy
Forgot your password?
Create an account
Already have an account? Sign in!
or continue with email
Cookies help us make Novakid better for you

Cookies are like the sprinkles on an ice cream sundae: they make the whole experience even better.

Our goal is to make Novakid the best online platform for learning English. So as you use our website, go ahead and enjoy the cookies — they're good for you!

You can personalize your choices by clicking on 'Cookie settings'.

Cookies help us make Novakid better for you

Cookies are like the sprinkles on an ice cream sundae: they make the whole experience even better. Our goal is to make Novakid the best online platform for learning English. So as you use our website, go ahead and enjoy the cookies - they're good for you!

Here are some examples of the cookies we use:
  • Advertising: To show you relevant ads from partners based on your activity on our website.
  • Analytics: To understand website usage to enhance user experience.
  • Personalization: To tailor content and offers to your past website interactions.

You can personalize your choices by clicking on ‘Cookie Settings’.

Cookie settings

Find more information about what cookies are and how we work with them in our Cookie policy and Privacy policy