View Full Version : Tables on CSS


starrynites
06-27-2003, 05:25 PM
Hi, is there any way you could put a background for tables in CSS? Here is my code, and the tables in is is called "td". Thanks! Please reply soon.....even if there isn't a way! And is there a way for images too? Like borders, etc. thanks!


H1{color:#6666CC; text-align: center; font-family:Vivaldi; font-size:14pt}

A:link { text-decoration: overline; color:"#00FFFF" }
A:visited { text-decoration: underline; color:"#FF99FF" }
A:active { text-decoration: underline overline; color:"#00FFFF" }
a:hover { background-color: #CC66FF; border: 1px solid #000000; cursor:crosshair }
body{background-color:#CC66CC;font-family:verdana;color:white;
scrollbar-face-color:#CC33FF; scrollbar-highlight-color:#CCCCFF;
scrollbar-3dlight-color:#FF00CC;scrollbar-shadow-color:#0066CC;
scrollbar-darkshadow-color:#0066FF;scrollbar-track-color:#0033FF;
scrollbar-arrow-color:#CC00CC}
td{font-family:comic sans ms; color:#FF66CC;
padding-left:1cm; padding-right:1cm;
padding-top:1cm; padding-bottom:1cm;
padding-1cm; padding-1cm, 1cm
input, textarea
{background:#33CCFF;
font-family:comic sans ms; color: #FF66CC;
border-style:dotted; border-color:#CCCCFF; border-width:3px}
images{bordercolor:#66CCFF; border-size=3}

kittycat
06-27-2003, 06:04 PM
You should be able to use this:
background-image: url (image.gif);
background-color: #colour;

If you want a line as a border:
border: 1px solid #colour;
and you can change the size/type/colour as well.

If you want an image as the table border, I don't think you can do that with CSS.

MaGiCSuN
06-27-2003, 07:01 PM
try this:

table { background-image: url (image.gif); }

put that inside your CSS codes and then change image.gif to the image you want to show as background

this code above will make all tables have the same background. If you only want one table to have a background then try this:

.tablebg { background-image: url (image.gif); }

and then put inside your <table> code the following:

class="tablebg"
Love,
Mirna

starrynites
06-29-2003, 09:13 PM
Thanks you guys! I've been searching all over the web for this. I had another question, but I'll post that when I REMEMBER it!!!!!! LoL, thanks!

Remember, in every problem there is an answer.