About 122,000 results
Open links in new tab
  1. CSS margin property - W3Schools

    Top and bottom margins of elements are sometimes collapsed into a single margin that is equal to the largest of the two margins. This does not happen on horizontal (left and right) margins!

  2. margin - CSS | MDN

    Nov 7, 2025 · This property can be used to set a margin on all four sides of an element. Margins create extra space around an element, unlike padding, which creates extra space within an …

  3. CSS Margin Property - W3docs

    Use CSS margin property to create space around an HTML element content outside of borders. Properties for specifying the margin are top, bottom, left and right.

  4. CSS Margins - GeeksforGeeks

    Nov 1, 2025 · CSS margins are used to create space outside an element’s border, helping to separate it from other elements on a webpage. They help in organizing the layout and …

  5. CSS Margins: An ULTIMATE guide - CSS Wolf

    Sep 26, 2022 · In this comprehensive guide, we cover everything – margin declaration syntax, margin shorthand property, negative margins, collapsing margins, the difference between CSS …

  6. Margins and Padding - HTML Dog

    margin and padding are the two most commonly used properties for spacing-out elements. A margin is the space outside something, whereas padding is the space inside something.

  7. CSS Margin Property (With Examples) - Programiz

    The CSS margin property adds space around an element. In this tutorial, you will learn about the CSS margin property with the help of examples.

  8. CSS Margin - W3schools

    To specify the space around an HTML element, the CSS Margin property is used. It adds a transparent space without any background color and thus clears an area around an element.

  9. HTML DOM Style margin Property - W3Schools

    Both the margin property and the padding property insert space around an element. However, the difference is that margin inserts the space around the border, while padding inserts the space …

  10. CSS Margins - Online Tutorials Library

    CSS margins are used to create space around the outer part of an element. In this tutorial, we will learn how to add different types of margins to HTML elements and the properties associated …