CSS Property Value How to - margin: 0;








Question

We would like to know how to margin: 0;.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
body {<!--   w w w.j  a  va  2  s  . c om-->
  margin: 0;
  padding: 0;
}

div {
  background: #eee;
}
</style>
</head>
<body>
  <div>asdf</div>
</body>
</html>

The code above is rendered as follows: