CSS Property Value How to - padding: 0;








Question

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

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
body {<!--   w ww .ja  v  a2 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: