Forum Moderators: not2easy
<html>
<head>
<title>Test 1</title>
<style type="text/css">
#div1 {
margin: 75px auto 0px auto;
background: red;
width: 250px;
height: 200px;
}
#div2 {
background: blue;
width: 230px;
height: 180px;
position: relative;
top: 10px;
left: 10px;
}
</style>
</head>
<body>
<div id="div1">
<div id="div2">
<img height="250px" width="500px">
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="language" content="english">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>Test 1</title>
<style type="text/css">
#div1 {
width:250px;
height:200px;
margin:75px auto 0;
background-color:#f00;
}
#div2 {
position: relative;
top:10px;
left:10px;
width:230px;
height:180px;
background-color:#00f;
}
#div2 img {
position:absolute;
top:30px;
left:30px;
width:500px;
height:250px;[blue]
background-color:#0f0; /*this is for display purposes only*/[/blue]
}
</style>
</head>
<body>
<div id="div1">
<div id="div2">
<img src="myimage.jpg" alt="my image">
</div>
</div>
</body>
</html>