Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Lists Reference: an outside list marker paints behind the list item's content</title>
<style>
body { margin: 0 }
ul { margin: 0; padding-inline-start: 100px }
/* No marker at all, which is what a marker covered by the content looks like. */
li { list-style-type: none; color: black; font: 20px/1 monospace }
span { display: inline-block; margin-left: -150px; width: 300px; height: 60px; background: green }
</style>
</head>
<body>
<ul><li><div><span></span></div></li></ul>
</body>
</html>