css margin padding

In the CSS margin has it's own specification and same as padding. Margin is the space between the element's border. On other hand panding is the space between the bordr and the element's content. The margin property took care about the space outside the elements. While on other hands pandding property took controls the space inside the elements.

how do I add a vertical margin in css

on Jun 03, 2022
subject {
  margin-top: /*the size of the margin */ (example: 100px)
  /* or */
  margin-bottom: /*the size of the margin */ (example: 100px)
}

Add Comment

0

padding margin and border

on Jun 03, 2022
GO TO THIS LINK
https://www.geeksforgeeks.org/css-margins-padding/
https://media.geeksforgeeks.org/wp-content/uploads/cssmarginandpadding.png

Add Comment

0

css code for margin

on Jun 03, 2022
body {
  margin: 0px;
}

Add Comment

0

All the answers will justify your question. You can give your own answers also.

Html answers related to "css margin padding"

View All Html queries

Html queries related to "css margin padding"

Browse Other Code Languages

CodeProZone