Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Oct 2011
    Posts
    116
    Thanks
    19
    Thanked 1 Time in 1 Post

    Strech image in table column

    Dear Experts

    I have following codes

    Code:
    <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
    Attached Thumbnails Attached Thumbnails Strech image in table column-dream3.jpg  

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,211
    Thanks
    23
    Thanked 605 Times in 604 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •