Streaming live at 10am (PST)

When is it ok to use Negative Margins?


#1

I've heard both - never use negative margins, and I have heard that it's ok.

What do you guys think?


#2

For those of you who want to know - I think this article pretty much sums it all up in a nutshell.


#3

When you want to move an element outside of its container, without letting a "ghost" space behind. You could transform-move it, but transform don't affect HTML flow. Negative margins move the element in HTML flow.

That said, I don't kknow why, but it's kind of a last resort. if you plan well ahead, you should find solutions for a layout that doesn't resort on negative margins. That last sentence may or may not be a total idiocy, that's just the practices I'm witnessing.


#4

ty @vincent ... did you see my message about the "e" accent?


#5

Can you post the issue in the forum?


#6

This topic was automatically closed after 60 days. New replies are no longer allowed.