nycguurl
11-22-2007, 10:06 PM
A few weeks ago somebody very smart helped me with this (John, hint, hint!) :o
I had wanted to have a cented div with more than one picture inside, all absolutely positioned just like I want them to be. It worked like a charm! Now all I want to know is how can I put a second one on the page? Every way I try, it keeps messing up the first one.
Here is the exact code I was given:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>New Page 1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
.container {
position:relative;
width:759px;
height:273px;
margin:0 auto;
}
.abs_im {
position:absolute;
border:none;
}
#im1 {
top:0;
left:269px;}
#im2 {
top:0;
left:0;
}
#im3 {
top:62px;
left:352px;
}
</style>
</head>
<body>
<div class="container">
<img class="abs_im" id="im1" alt="" src="images/Practice2.bmp" width="469" height="273">
<img class="abs_im" id="im2" alt="" src="images/Practice1.bmp" width="229" height="229">
<img class="abs_im" id="im3" alt="" src="images/Practice3.gif" width="102" height="26">
</div>
</body>
</html>
I had wanted to have a cented div with more than one picture inside, all absolutely positioned just like I want them to be. It worked like a charm! Now all I want to know is how can I put a second one on the page? Every way I try, it keeps messing up the first one.
Here is the exact code I was given:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>New Page 1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
.container {
position:relative;
width:759px;
height:273px;
margin:0 auto;
}
.abs_im {
position:absolute;
border:none;
}
#im1 {
top:0;
left:269px;}
#im2 {
top:0;
left:0;
}
#im3 {
top:62px;
left:352px;
}
</style>
</head>
<body>
<div class="container">
<img class="abs_im" id="im1" alt="" src="images/Practice2.bmp" width="469" height="273">
<img class="abs_im" id="im2" alt="" src="images/Practice1.bmp" width="229" height="229">
<img class="abs_im" id="im3" alt="" src="images/Practice3.gif" width="102" height="26">
</div>
</body>
</html>