Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>A float in the list item's content does not move the outside marker</title>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
body { margin: 0; font: 20px/1 Ahem }
ul { margin: 0; padding-inline-start: 60px }
.box { display: inline-block; width: 60px; height: 20px; background: green; vertical-align: top }
</style>
</head>
<body>
<ul><li><div><span class="box"></span>xx</div></li></ul>
</body>
</html>