Skip to content. | Skip to navigation

Sections
Personal tools
What is this?
Hi, my name is Tom Lazar and I'm a Plone and Zope developer based in Berlin, Germany and this is my personal and professional (no big difference, really...) website.
 

Negative Margins in Safari and IE

Filed Under:

From the Quick-and-Dirty Department

Ah, what better way to end a multi-month-long blogging hiatus than with a brief 'note to myself'...

Here it goes: in order to properly use negative margins you must declare the object's position as relative for Safari and static for WinIE. (This was, admittedly for a special use case, where the div wrapping the element with the negative margin also was set to overflow: none and WinIE wouldn't honour that, if the contained item's position was set to relative.)

So there, the spell has been broken... see ya!