---
title: "Discussion on \"Margin padding in CSS\" | Hashnode"
description: "Discussion on \"Margin padding in CSS\". Q1. What are margin and padding and when do we use them?\nAns:-Padding and margin are two CSS (Cascading Style Sheets) properties used to control the space around an HTML element. \nPadding is the space between an element's content and its border. It i..."
url: "https://hashnode.com/posts/margin-padding-in-css/63db1439bfc930535b452cc1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Margin padding in CSS](https://emmet.hashnode.dev/margin-padding-in-css?utm_source=hashnode&utm_medium=feed)

Q1. What are margin and padding and when do we use them? Ans:-Padding and margin are two CSS (Cascading Style Sheets) properties used to control the space around an HTML element. Padding is the space between an element's content and its border. It i...

Feb 2, 2023 · 2 min read · emmet.hashnode.dev  
Read the article

-   [#css-margin-property](https://hashnode.com/tag/css-margin-property)
-   [#css-padding-property](https://hashnode.com/tag/css-padding-property)

## Written by

[Subhojit Das](https://hashnode.com/@Subhajit78)

@Subhajit78

  
[View profile](https://hashnode.com/@Subhajit78)

why cant we built next google....... :(

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
