Watermarks in tables

  • Thread starter Thread starter Mark Rae
  • Start date Start date
M

Mark Rae

Hi,

Is it possible to have a watermark / background image on an individual table
row either in raw HTML or with the <asp:Table> control?

I know it is possible to change the background colour in a row by row basis,
but I wondered if it was also possible to do the same with an image?

Just wondering...

Mark
 
Sure, just set CssClass for the item to a css class with background-image
rule defined.

Eliyahu
 
Sure, just set CssClass for the item to a css class with background-image
rule defined.

This actually set the background image on each tablecell individually. Is
there a way so that a background image applies to the whole tablerow?
 
If you apply CssClass to every cell in Cells collection, you get the image
on every cell. If you apply CssClass to just Item, you should get the image
on the row.

Eliyahu
 
If you apply CssClass to every cell in Cells collection, you get the image
on every cell. If you apply CssClass to just Item, you should get the
image
on the row.

You don't...
 
And what happens if you apply it in the "class" attribute to <tr>? I mean,
is it because ASP.NET doesn't translate CssClass for Item to class for <tr>,
or class with background-image doen't work properly for <tr>?

Eliyahu
 
And what happens if you apply it in the "class" attribute to <tr>?

The background image is displayed in each said:
I mean, is it because ASP.NET doesn't translate CssClass for Item to class
for <tr>,
or class with background-image doen't work properly for <tr>?

I have no idea...
 
Back
Top