413840-background-unchanged-ref.html (1075B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 2 "http://www.w3.org/TR/html4/strict.dtd"> 3 <html lang="en-US"> 4 <head> 5 <title>Test case for list items flowing around floats</title> 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7 <meta http-equiv="Content-Style-Type" content="text/css"> 8 <style type="text/css"> 9 10 ul, ol, li { margin-top: 0; margin-bottom: 0; } 11 li { height: 2em; background: aqua; color: black; } 12 13 </style> 14 </head> 15 <body> 16 17 <div style="background: aqua; color: black; margin-left: 40px"> 18 <div style="margin-left: -40px"> 19 <div style="margin-left: 60px"><ol start="1"><li>one</li></ol></div> 20 <div style="margin-left: 60px"><ol start="2"><li>two</li></ol></div> 21 <ol start="3"><li>three</li></ol> 22 <ol start="4"><li>four</li></ol> 23 </div> 24 </div> 25 26 <div style="background: aqua; color: black; margin-left: 40px"> 27 <div style="margin-left: -40px"> 28 <div style="margin-left: 60px"><ul><li>one</li></ul></div> 29 <div style="margin-left: 60px"><ul><li>two</li></ul></div> 30 <ul><li>three</li></ul> 31 <ul><li>four</li></ul> 32 </div> 33 </div> 34 35 </body> 36 </html>