Linking to my files not working through HTML Codes!!!!

  • 1
  • Question
  • Updated 8 years ago
  • Answered
I've an image file in my resource of my site, suppose "image.png". Now I want to link through HTML as a background of a table...

Local path to my Image: "/resources/image.png"

Codes:<table>
<tr>
<td style="background:#0000FF;"> // Supported.... but
<td style="background:'/resources/image.png';"> // Not Supported....
My Text Goes Here...
</td></tr>
</table>

The background color is working fine but when I'm using an image, its not working.
Please suggest me if there is any other way to use local images as background of tables with HTML.
Photo of Little Star

Little Star

  • 14 Posts
  • 0 Reply Likes
  • a little frustrated!!

Posted 8 years ago

  • 1
Photo of John McCarthy

John McCarthy

  • 1292 Posts
  • 99 Reply Likes
Please share the code you are using,or tell us the page so we can take a look
Photo of Little Star

Little Star

  • 14 Posts
  • 0 Reply Likes
I've supplied them....
Photo of Little Star

Little Star

  • 14 Posts
  • 0 Reply Likes
I've supplied the codes!! plz help....
Photo of John McCarthy

John McCarthy

  • 1292 Posts
  • 99 Reply Likes
sorry they didn't appear earlier,must be my pc :L
Photo of John McCarthy

John McCarthy

  • 1292 Posts
  • 99 Reply Likes
<table style="background-image: url(http://yourwebsite.com/resources/your...; height=100px" cellpadding="5px"> <tr> <td><p style="background: white"> This table should work</p></td> </tr> </table>

give it a try
Photo of Little Star

Little Star

  • 14 Posts
  • 0 Reply Likes
I will try it but I want to use Local Path... not a global. I don't have my own domain still now and when I'll buy I've to change all over my codes. Can't I use Local Path??
Photo of Marije

Marije, Official Rep

  • 4636 Posts
  • 237 Reply Likes
Hi Little Star,

Remember to republish your site after uploading the image so that it's available on your published site.

You can also include your whole URL: http://www.yoursite.com/resources/ima... (if you'd like to give us the whole URL, we can check whether the image is available).

Remember to include any folder names if you've added the image to a folder: resources/folder/image.png
Photo of Little Star

Little Star

  • 14 Posts
  • 0 Reply Likes
I will try it but I want to use Local Path... not a global. I don't have my own domain still now and when I'll buy I've to change all over my codes. Can't I use Local Path??
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Try this Little Star,
<td style="background-image:url('h ttp://yoursite/resources/image.png');">