CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 17th, 2012, 06:52 AM
Jetheat Jetheat is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: uk
Posts: 104 Jetheat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 h 41 m 13 sec
Reputation Power: 9
Placing Background Image in <TD> Cell

I'm trying to get a background image in a TD cell but it just wont work.

Here is the code I am trying:

Code:
<td id="content" colspan="2" valign="top" style="background: url(http://www.omittedsite.com/images/bg_wrapper.gif) repeat-x">


Any idea what it could be?

JH

Reply With Quote
  #2  
Old September 18th, 2012, 01:23 PM
Paul-Ninja Paul-Ninja is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2012
Location: Troy, NY
Posts: 36 Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 15 h 30 m 48 sec
Reputation Power: 66
I did a quick test for your issue and it seems that the image in question does not exist. I would try re uploading the image.

Code:
<!DOCTYPE html>
<html>
<head>
<title>Table Test</title>
<style <style type="text/css">
table {margin: 0 auto; width: 50%; }
td{border: 1px solid #333; padding: 20px; text-align:center; }
</style>
</head>

<body>
<table>
  <tr>
    <td id="content" valign="top" style="background: url(http://www.omittedsite.com/images/bg_wrapper.gif) repeat-x">This td should have a<br> background image</td>
    <td>2</td>
    <td>3</td>
    <td>4</td>
    <td>5</td>
  </tr>
</table>
</body>
</html>

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Placing Background Image in <TD> Cell

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap