tables, block replaced elements and block boxes with overflow other than visible establish their own block formating context. Therfore their borders do not overlap with margin of floated element
No-Library (pure JS), HTML, CSS, JavaScript
jQuery 2.1.0, HTML, CSS, JavaScript
jQuery 1.8.3, HTML, CSS, JavaScript