Trying to my page to look like pic below. It needs to be in a div . here what i
ID: 3550087 • Letter: T
Question
Trying to my page to look like pic below. It needs to be in a div . here what i have
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Exercise Cure</title>
<style type="text/css">
.div6 {
float: left;
margin-left: 5px;
height: 273px;
border-style: solid;
width: 910px;
position: absolute;
top: 53px;
left: 5px;
}
</style>
</head>
<body>
<center><h1>The Exercise Cure</h1></center>
<div class="div6"</div>
</body>
</html>
Explanation / Answer
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Exercise Cure</title>
<style type="text/css">
.div6 {
float: left;
margin-left: 5px;
height: 100%;
border-style: solid;
width: 910px;
position: absolute;
top: 53px;
left: 5px;
background-color: aqua;
}
</style>
</head>
<body>
<div class="div6">
<center>
<h1>The Exercise Cure</h1>
<img src="http://ecx.images-amazon.com/images/I/51OrFZIqZeL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA278_PIkin4,BottomRight,-42,22_AA300_SH20_OU01_.jpg" alt="" width="" />
<h2>A Doctor's All Natural Solution to Better Health and a longer life</h2>
<table>
<tr>
<td><h3>Price:</h3></td><td><h3>$1.99</h3></td>
</tr>
<tr>
<td><h3>Quantity:</h3></td><td><h3><input type="text" value="1"/></h3></td>
</tr>
</table>
<img src="http://www.grokdotcom.com/wp-content/uploads/Bryan/Amazon/amazon_cart.jpg" alt="" />
</center>
</div>
</body>
</html>
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.