View Full Version : Why wont this work?!?!??!


autumnphyre
08-15-2004, 02:17 PM
*sigh*, in a table im trying to get the background as black and then add an image to the background and i use this code <style type="text/css">
body{background:#000000 url(imageaddress.jpg) no-repeat center fixed}
</style> then i kni should be able to put text over it. Only thing is that all this is being put in a table, this is what im using for that part
<table width="75%" height="auto" cellspacing="0" cellpadding="0" align="center" border="0">
<tr>

<td width="754" height="149" valign="top" border="0" bgCOLOR="black"><centre><img src="imageaddy1.jpg" border="0"></center></td>
</tr>
</table>

<table align="center" width="755" height="80%" border="1" bordercolor="#990066" bgCOLOR="black" cellpadding="0" cellspacing="0">
<tr>
<td width="140" valign="top" border="0">
MY TEXT HERE (which would be the links)
Then i finish off the table. But the bit i need help is how to make the left side of the tablehave a black background, but an image included in the backgruond and then text over the tope of an image *hopes she makes sense and some one can help her!* >_< :idea:

pb&j
08-15-2004, 05:40 PM
just add this to the TD or TABLE tag you desire...

style="background-color:#000000; background-image: url(imageaddress.jpg);"

autumnphyre
08-15-2004, 09:18 PM
omg yayas it work thankyou, one last question to add in no-repeat where do i add it in the code? style="background-color:#000000; background-image: url(imageaddress.jpg); no-repeat" ? is that right?

Rosey
08-15-2004, 10:26 PM
background-repeat:no-repeat

autumnphyre
08-15-2004, 10:50 PM
thankyou