CSS Border
The CSS border property defines a border around an HTML element.
Tip: You can define a border for nearly all HTML elements.
CSS Padding
The CSS padding property defines a padding (space) between the text and the border.
CSS Margin
The CSS margin property defines a margin (space) outside the border.
HTML element ਦੇ ਬਾਹਰ ਅਤੇ Browser window ਦੇ ਅੰਦਰ ਖਾਲੀ ਜਗ੍ਹਾ ਨੂੰ Margin ਕਿਹਾ ਜਾਂਦਾ ਹੈ | ਇਹ css property element ਦੇ ਦੁਆਲੇ (around) ਦੀ ਜਗ੍ਹਾ represent ਕਰਨ ਲਈ ਕੀਤੀ ਜਾਂਦੀ ਹੈ ਇਸੇ ਜਗ੍ਹਾ ਨੂੰ ਹੀ margin (ਹਾਸ਼ੀਆ) ਕਹਿੰਦੇ ਹਨ|margin ਦੋ elements ਦੇ ਵਿਚਕਾਰ ਦੀ ਉਪਲਬਧ ਰਹਿੰਦਾ ਹੈ | margin ਦਾ ਕੋਈ color ਨਹੀਂ ਹੁੰਦਾ ਇਹ ਪਾਰਦਰਸ਼ੀ ਹੁੰਦੇ ਹਨ |
Live Demo & Try it yourself!
Output