Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting the Background image in the table through style sheet.

Status
Not open for further replies.

meenakshidhar

Programmer
Oct 19, 2001
77
MY
hi,
i am trying to set a background image in the table through style sheet...The background image is to be inserted in the inner table.....
I could'nt do it.. can anyone give me the leads...

The style sheet coding is..

/* color of content tables */
table.content {
color :#000000;
background : #d0d0d0;

}

/* row color for content tables */
tr.content {

COLOR:"#FFFF00";
FONT-SIZE: 90%
background-image:url("../eu/3.gif")
+++++++The above line is inserted to display the image in the background of the table..but it does'nt work++++++++
}

 
meenakshidhar,
You don't have ";" between FONT-SIZE: 90% and background-image:url("../eu/3.gif") styles.
Maybe this is the reason.
 
If starway's answer is not enough:

I'm not sure , but maybe you it are the "quotes" you use in the URL. Try : url(../eu/3.gif)

The second thing I can think of is that you use 2 classes with the same name. Try :

table.content
tr.contents

Hope this helps,
Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top