css style margin top code example Example 1: css margin top .yourClass { margin-top: 25px; } Example 2: css code for margin body { margin: 0px; }