<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> <html lang="en"> <head> <title>Replaced inline elements wrapping around floats (% widths)</title> <style type="text/css"> div { width: 600px; height: 200px; background: red; } div p { height: 100px; background: green; } img { vertical-align: bottom; } img.float { float: left; } img.flow { width: 100%; height: 100px; } </style> </head> <body> <p>There should be no red below.</p> <div> <p> <img src="/resources/images/sample" alt="" class="float"> <img src="/resources/images/sample" alt="Image support required for this test" class="flow"> </p> </div> </body> </html>