Files
Randell Dawson 1494a50123 fix(guide): restructure curriculum guide articles (#36501)
* fix: restructure certifications guide articles
* fix: added 3 dashes line before prob expl
* fix: added 3 dashes line before hints
* fix: added 3 dashes line before solutions
2019-07-24 13:29:27 +05:30

727 B

title
title
Add a Negative Margin to an Element

Add a Negative Margin to an Element


Problem Explanation

Margin is the spacing between the border of an element and other elements on the page.

•There is spacing from the top, right, bottom, and left.

•The number is in css units

For example, to adjust the margin of an element to be negative you could use:

.example {
margin: -10px;
}

To adjust the padding of an individual element use: padding: -10px;

You can find out much more about negative margins here

Good luck!