I have a table in html and I want to add different background images to each <th>
of the table, but the background image is not coming up
I tried by adding in following way
<tr>
<th>Test table header</th>
<th style="background: url("external url");" >Column 1 header <br/>How to</th>
<th style="background: url("external url");" >Column 2 header <br/>How to</th>
</tr>
But the image is not coming up.
Tried below alternative as well
<th style="background-image: url("external url");" >Column 1 header <br/>How to</th>
3
Answers
Try simple quote instead of double quotes for the external url, because you’re style param already use double quotes :
It should work using ‘ instead of "
Column 2 header
How to
Should be working with
background-image: url(external url);
without the quotes:If you still don’t see it maybe your cells should be bigger