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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS background question

Status
Not open for further replies.

Christylh8

IS-IT--Management
Jul 14, 2002
25
0
0
US
How do you specify a background image or group of sliced images on a CSS? Is that possible?

Thanks!

Christy
 
Hi,

You can spefiy background image for table cell like this:

td.cell1 {background-image: url(image.gif);
td.cell2 {background-image: url(image2.gif);

<TD CLASS=&quot;cell1&quot;>etc</TD>
<TD CLASS=&quot;cell2&quot;>etc</TD>

You create classes for the table cell that you want to have background images appear in then reference the class in each <TD>. Each image slice is in it's own table cell and you lay everything out like that.

Hope this helps!
relax.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top