Can soneone give me a hint why my element (id = "stuff") will not be displayed?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>blah</title> <style type="text/css" media="screen, print, projection"> body{ width: 100%; height: 100%; margin: 0; padding: 0; } img#background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin:0; padding:0; } #stuff{ background: black; height: 50px; width: 100px; z-index: 2; } </style> </head> <body> <img id="background" src="greenbackground.png" alt="Background Image" /> <div id="stuff"><p>stuff</p></div> </body> </html>
source share