...

View Full Version : Strech image in table column



tqmd1
11-09-2011, 08:14 AM
Dear Experts

I have following codes


<html><head><h1>Image and data in table column</h1></head> <style type="text/css"> .bg {widht:100%;height:100%}.al {text-align:center;} </style> <body> <table width="50%" height="100px" border="1" cellpadding='0' cellspacing="0"> <tr> <td widht="25%" background="DREAM.JPG" tabindex="2" title="The Code Project"><h3 class="al">Hello</h3></td> <td widht="25%" bgcolor=pink><h3>world</h3></td> </tr></table> </body></html><html>
<head><h1>Image and data in table column</h1></head>

<style type="text/css">

.bg {widht:100%;height:100%}
.al {text-align:center;}


</style>

<body>

<table width="50%" height="100px" border="1" cellpadding='0' cellspacing="0">
<tr>
<td widht="25%" background="DREAM.JPG" tabindex="2" title="The Code Project"><h3 class="al">Hello</h3></td>

<td widht="25%" bgcolor=pink><h3>world</h3></td>

</tr>
</table>

</body>
</html>


In column I want to stretch the image that is shown in attached file
Please help

sunfighter
11-09-2011, 03:27 PM
Best advise for you at this point is learn HTML and than CSS here:
http://www.w3schools.com/

P.S.
widht is width. bgcolor is not used. You have to declare a DOCTYPE.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum