ilikephp Posted January 23, 2008 Share Posted January 23, 2008 hello, I am using css style, and I need only the background picture to be in the specified cell and not in the whole table, what can I do plz? the css style: body { background-color: #FFCC66; background-image: url("butterfly.gif"); } h1 { color: #990000; background-color: #FC9804; } Quote Link to comment https://forums.phpfreaks.com/topic/87405-solved-bground-in-cells/ Share on other sites More sharing options...
kate_rose Posted January 23, 2008 Share Posted January 23, 2008 First of all I am still a newbie but I don't quite get your question. Are you talking about using a regular table like from the old html? K Quote Link to comment https://forums.phpfreaks.com/topic/87405-solved-bground-in-cells/#findComment-447224 Share on other sites More sharing options...
ilikephp Posted January 24, 2008 Author Share Posted January 24, 2008 I mean that: I have a table and inside it I have many cells, so what I need is to put a .css file inside 1 cell and not all. Quote Link to comment https://forums.phpfreaks.com/topic/87405-solved-bground-in-cells/#findComment-447604 Share on other sites More sharing options...
pquery Posted January 25, 2008 Share Posted January 25, 2008 insert in your stylesheet (your .css file) .specialcell { background-image: url('PUT THE LINK TO THE PICTURE YOU WANT HERE '); } then in the cell you want the image to appear make your data tag go <td class="specialcell"> that should solve your problem Quote Link to comment https://forums.phpfreaks.com/topic/87405-solved-bground-in-cells/#findComment-449136 Share on other sites More sharing options...
ilikephp Posted January 28, 2008 Author Share Posted January 28, 2008 I did what you asked for me but in the cell that I want the .css to appear and it works but I put in dreamweaver: css style ---> attach css style, in my cell in order to see the image. is it ok? Quote Link to comment https://forums.phpfreaks.com/topic/87405-solved-bground-in-cells/#findComment-451069 Share on other sites More sharing options...
ilikephp Posted February 4, 2008 Author Share Posted February 4, 2008 it works, thanks Quote Link to comment https://forums.phpfreaks.com/topic/87405-solved-bground-in-cells/#findComment-457477 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.