<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>css3-background: stacking order of layers</title> <link rel="author" title="L. David Baron" href="https://dbaron.org/" /> <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> <link rel="help" href="http://dev.w3.org/csswg/css3-background/#layering" /> <meta name="flags" content="" /> <style type="text/css"><![CDATA[ div#test { position: relative; height: 100px; width: 100px; } ]]></style> </head> <body> <div id="test"> <img src="aqua-32x32.png" style="position: absolute; left: 20px; top: 20px" /> <img src="fuchsia-32x32.png" style="position: absolute; left: 10px; top: 10px" /> <img src="yellow-32x32.png" style="position: absolute; left: 15px; top: 15px" /> <img src="blue-32x32.png" style="position: absolute; left: 5px; top: 5px" /> </div> </body> </html>