Negative margins
suggest changeMargin is one of a few CSS properties that can be set to negative values. This property can be used to overlap elements without absolute positioning.
div{
display: inline;
}
#over{
margin-left: -20px;
}
<div>Base div</div>
<div id="over">Overlapping div</div>
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents