CSS Property Value How to - margin-top: 1em;








Question

We would like to know how to margin-top: 1em;.

Answer


<!--from ww w  .j  a  v a 2 s  . c om-->
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
strong {
  margin-top: 1em;
}
</style>
</head>
<body>
  <pre>
    <strong>hello</strong>
  </pre>
  <strong>hello</strong>
</body>
</html>

The code above is rendered as follows: