---
title: "Discussion on \"CSS Margin and Padding\" | Hashnode"
description: "Discussion on \"CSS Margin and Padding\". In CSS, margin and padding are properties used to create space around elements. However, they serve different purposes and affect elements differently.\nMargin\nMargin is the space outside the border of an element. It creates space between the element ..."
url: "https://hashnode.com/posts/css-margin-and-padding/6667e3a2618ee64ad3cbced3"
---

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

Discussion

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

In CSS, margin and padding are properties used to create space around elements. However, they serve different purposes and affect elements differently. Margin Margin is the space outside the border of an element. It creates space between the element ...

Jun 11, 2024 · 5 min read · keycomputereducation.hashnode.dev  
Read the article

-   [#html5](https://hashnode.com/tag/html5)
-   [#html](https://hashnode.com/tag/html)
-   [#css](https://hashnode.com/tag/css)
-   [#css3](https://hashnode.com/tag/css3)
-   [#css-animation](https://hashnode.com/tag/css-animation)
-   [#margin](https://hashnode.com/tag/margin)
-   [#padding](https://hashnode.com/tag/padding)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)

## Written by

[Akshima Sharma](https://hashnode.com/@Keycomputereducation)

@Keycomputereducation

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
