css - Why the developers use negative margin when they float items? -


why use negative margin if float items?

ul { {negative margin} }  ul li { float:left; margin-right:10px; } 

i saw somewhere don't remember. can explain why use negative margin properties? see same strange thing in wordpress's twentyeleven theme.

negative values in margin got same goal positive. it's presentation.

as @better_use_mkstemp links you, negative values allowed w3c; can't consider "strange".

cf: http://coding.smashingmagazine.com/2009/07/27/the-definitive-guide-to-using-negative-margins/


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -