UncleMortis
Programmer
I'm trying to make a table that has a background texture to it, which is different to the background that runs in the main browser. I cannot for the life of me get it to show up. In my css file, I've included a class for it, but I get nothing. I've gone through all my table information in my books, I've gone through adding background images in my css book, I can't seem to find anything to work. What am I doing wrong? There's something missing but I can't put my finger on it. Below is an except of the code from my main html page and the external css file that links to it.
bit from css file...
bit from main html page
Is it something stupid I'm missing? I can add a normal colour background fine, When I went to add the jpg background, I realised I'd never done it before, but would think it's basically the same proceedure for adding a background to a normal page using css. The picture I want to use is in the right place and I know it works as an <img>. Any suggestions would save me from gray hair and a nervous disposition.
bit from css file...
Code:
.paper {background-image: url (paper.jpg);
background-repeat: repeat;
background-attachment: fixed;
}
Code:
<table border=1>
<tr>
<td class=paper>
Hope this works
</td>
</tr>
</table>
Is it something stupid I'm missing? I can add a normal colour background fine, When I went to add the jpg background, I realised I'd never done it before, but would think it's basically the same proceedure for adding a background to a normal page using css. The picture I want to use is in the right place and I know it works as an <img>. Any suggestions would save me from gray hair and a nervous disposition.