The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS “magic numbers” in CSS Re: “magic numbers” in CSS


Negative margin is a handy property.

However, there are a couple of ways of achieving the overlap you mentioned but they work in different ways.

Negative margin is one and Relative positioning is another. Which one you use will depend on your required layout.

I’ve created a small example to show the principal differences.