Jump to content

cant assign an Image to td


mike12255

Recommended Posts

Hello i made a class and im trying to assign an image I got to the first td however Its not working, below is my code I hope somone can spot my error.

 

CSS:

#news_display{
Padding:2px;
font-size:13px;
color:white;
}

#news_display td.news {
background: url('../images/table_top.gif');
width:200px;
padding:2px;
color:white;
}

 

Html:

<div id="news_display">
<table>
<tr><td class="news"> Latest Threads </td> </tr>
<tr>
<td>08/04</td><td>What happened to the last...</td><td>Jer0me</td></tr>
<tr><td>08/04</td><td>What happened to the last...</td><td>Jer0me</td></tr>
<tr><td>08/04</td><td>What happened to the last...</td><td>Jer0me</td></tr>
<tr><td>08/04</td><td>What happened to the last...</td><td>Jer0me</td></tr>

</table>
</div>
<!-- End Of News Display -->

 

Link to comment
Share on other sites

Apart from padding spelled with a Capital It all looks pretty valid.

So i think it's just a path to image issue.

 

maybe try:

 

#news_display td.news {
background: url(images/table_top.gif);
width:200px;
padding:2px;
color:white;
}

 

If you have this online somewhere I can have a look

 

P.s. Note though unless you have no other background color, you will never see the white colored text

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.