Search code examples
cssweb-standards

Negative Margins, Hack or Not?


I've come across various posts where people are stating that negative margins are hacks. Thus I've strayed away from using them with exception to particular cases when I can justifiably use them, like throwing text off the screen with margin:-9999px

Question, are negative margins a hack and when is it right to use negative margins? I've seen them used in the 960 Grid System with, .push and .pull, any other cases where they are justifiably usable?!?!


Solution

  • Negative margins are allowed based on W3C specifications. I have used them to let things overhang their container.