<!DOCTYPE HTML> <title>outline goes around overflow, floats</title> <style> html, body { margin: 0; padding: 0; border: none } html { overflow:hidden /* avoid second reflow for scrollbars */ } body > div { margin: 98px; border: 2px solid blue; height: 100px } </style> <body> <div></div>