image alignment

liunx

Guest
The align attribute in the image tag is not used to align the image itself. <br />
For e.g <img src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"image.gif" align = middle> If I write a text here.<br />
<br />
The align attribute will align the text beside the image in the middle. <br />
But what if I place another image besides the first one, i.e<br />
<img src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"image.gif" align = middle> <img src = "image2.gif"><br />
<br />
Why is the second image not found in the middle of the first one.<!--content-->The "align" attribute was depricated back in 1997 and with good reason. Use styles (<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/">http://www.w3.org/TR/REC-CSS2/</a><!-- m -->) instead.<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"<br />
"http://www.w3.org/TR/html4/strict.dtd"><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
<title>Example</title><br />
<br />
<div><br />
<img alt="[Big Bettie]" src=http://www.webdeveloper.com/forum/archive/index.php/"http://www.bettiepage.com/images/photos/bikini/bikini1.jpg"><br />
<img alt="[Smaller Bettie]" src=http://www.webdeveloper.com/forum/archive/index.php/"http://www.bettiepage.com/images/photos/bikini/bikini1_a.jpg" style="vertical-align:114px"><br />
</div><!--content-->
 
Back
Top