Removing margin in CSS

* {
  margin: 0;
  padding: 0;
}

or

body {
  margin: 0;
  padding: 0;
}

We should set margin to 0 and padding to 0. It is the easiest way to remove all default margin and padding for every object on the page.

296 Views
53550cookie-checkRemoving margin in CSS

Leave a Reply

Your email address will not be published. Required fields are marked *