Click here to Skip to main content
15,914,323 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I want to put an image in the table row how to create it can u plz xplain code for it . i want to create title bas in which i want to put Home,Aboutus option in title bar.
Posted

How to insert an image in a Table Row
HTML
<table><tbody><tr><td><img src="YourImageSource" />Your Text Here</td></tr></tbody></table>

Create Html Title Bar[^]
 
Share this answer
 
v2
Comments
Tisha Ahuja 3-Oct-12 23:59pm    
I also want to put text on this coloumn how could i do it???
fjdiewornncalwe 4-Oct-12 9:13am    
See the updated solution
Hey Friend ,
if u want to insert an image in to table row then you just need to write css class for image you can do it two ways

1. applying image to the table row using class
XML
<style type="text/css">
        .ClassName
        {
            background-image:YoourImagePath;
        }
    </style>

XML
<table>
    <tr class="className">
        <td></td>
    </tr>
</table>


OR
2 applying image to the table column using class
XML
<style type="text/css">
    .ClassName
    {
        background-image:YoourImagePath;
    }
</style>


XML
<table>
    <tr >
        <td class="className"></td>
    </tr>
</table>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900