center images within table
does know why logo isn't centering (horizontally) within cell?
code is:
<!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>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>untitled document</title>
<style type="text/css">
body,td,th {
font-family: arial, helvetica, sans-serif;
font-size: 16px;
color: #666;
}
img {
border: none;
}
h1 {
font-size: 20px;
color: #666;
}
h2 {
font-size: 12px;
color: #666;
}
h3 {
font-size: 15px;
color: #000;
}
h4 {
font-size: 12px;
color: #000;
}
</style>
</head>
<body>
<table width="873" border="0" cellspacing="0" cellpadding="5">
<tr>
<td colspan="3" bgcolor="#d6dfe9">logo here</td>
</tr>
<tr>
<td width="227" colspan="1" align="center" valign="top" bgcolor="#d6dfe9"><h3>text</h3></td>
<td colspan="2"><p>text goes herext goes herext goes herext goes herext goes here xt goes herext goes here xt goes here xt goes herext goes herext goes herext goes herext goes herext goes here</p>
<p> </p> <p>es herext goes here xt goes herext goes here xt goes hes herext goes here xt goes herext goes here xt goes hes herext goes here xt goes herext goes here xt goes hes herext goes here xt goes herext goes here xt goes hes herext goes here xt goes herext goes here xt goes hes herext goes here xt goes herext goes here xt goes hes herext goes here xt goes herext goes here xt goes hes herext goes here xt goes herext goes here xt goes h</p>
<p>es herext goes here xt goes herext goes here xt goes hes herext goes here xt goes herext goes here xt goes hes herext goes here xt goes herext goes here xt goes h</p></td>
</tr>
<tr>
<td valign="top" align="center" bgcolor="#d6dfe9"><p>
</p>
<p>text</p></td>
<td bgcolor="#d6dfe9"width="246"><h3 align="center">asdfasf </h3>
<p><img src="http://cdn.iphonehacks.com/wp-content/uploads/2012/11/att-logo.jpg" width="175" height="171" align="center" /> </p>
<p> </p>
<p> </p></td>
<td alighn = "center" bgcolor="#d6dfe9"width="370"><p>text </p></td>
</tr>
</table>
</body>
</html>
you aren't telling center aligned. set alignment on <h3> rather <td> <h3> good, remainder of content under isn't.
More discussions in Dreamweaver support forum
adobe
Comments
Post a Comment