Can negative fields be used for positioning? I have a lot on my current site and feel that this is not such a stable way of positioning things. I usually suggest using them too.
For example, I have a checkout page with three divs on each other
<div class="A"> header </div> <div class="B"> content </div> <div class="C"> footer </div>
(A, B and C) that are designed to sit on top of each other so that they are attached. I did this using:
.B { margin-top: -20px; }
On div B to meet the bottom of div A.
Is this good practice or will I recode using top and left ?
source share