Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
17 Points
31 Posts
Oct 08, 2007 08:34 PM|LINK
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <style type="text/css" media="screen"> <!-- #bottom{ width: 200px; height: 200px; background-color: black; } #top{ width:100px; height:200px; background-color:red; z-index: 999; } --> </style> </head> <body> <div id="bottom"> <div><img src="images/big.gif" width="529" height="332" /></div> <div id="top"><img src="images/small.gif" width="20" height="122" /></div> </div> </body> </html>
me_myself
Member
17 Points
31 Posts
Re: DIV on top of another DIV without absolute positioning ?!
Oct 08, 2007 08:34 PM|LINK
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <style type="text/css" media="screen"> <!-- #bottom{ width: 200px; height: 200px; background-color: black; } #top{ width:100px; height:200px; background-color:red; z-index: 999; } --> </style> </head> <body> <div id="bottom"> <div><img src="images/big.gif" width="529" height="332" /></div> <div id="top"><img src="images/small.gif" width="20" height="122" /></div> </div> </body> </html>