![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am trying to set row background colors, but I can only set them in the td's . If I set them with a class in the tr they dont render. What am I doing wrong? |
#3
| |||
| |||
|
|
I am trying to set row background colors, but I can only set them in the td's . |
|
If I set them with a class in the tr they dont render. |
|
What am I doing wrong? |
#4
| |||
| |||
|
|
I am trying to set row background colors, but I can only set them in the td's . If I set them with a class in the tr they dont render. |
#5
| |||
| |||
|
|
Hello, I am trying to set row background colors, but I can only set them in the td's . If I set them with a class in the tr they dont render. What am I doing wrong? |
#6
| |||
| |||
|
|
If I set them with a class in the tr they dont render. Put the class on the tr and use descendant selectors to apply the color to the td's in that row. |
#7
| |||
| |||
|
|
But why? If you set background for tr, then this background will shine through in the cells, if they have the default background setting, transparent. If this is not the case, there is something special that prevents that. |
#8
| |||
| |||
|
|
"Jukka K. Korpela" <jkorp... (AT) cs (DOT) tut.fi> wrote in messagenews:jX7bl.118652$_03.109122 (AT) reader1 (DOT) news.saunalahti.fi... But why? If you set background for tr, then this background will shine through in the cells, if they have the default background setting, transparent. If this is not the case, there is something special that prevents that. I seem to recall that some user agents wouldn't apply a background to tdsby setting it on the tr directly, but on actually checking this, it appears that even fairly antiquated browsers do. |
#9
| |||
| |||
|
|
On Jan 13, 5:01�pm, "Nik Coughlin" <nrkn.... (AT) gmail (DOT) com> wrote: "Jukka K. Korpela" <jkorp... (AT) cs (DOT) tut.fi> wrote in messagenews:jX7bl.118652$_03.109122 (AT) reader1 (DOT) news.saunalahti.fi... But why? If you set background for tr, then this background will shine through in the cells, if they have the default background setting, transparent. If this is not the case, there is something special that prevents that. I seem to recall that some user agents wouldn't apply a background to tds by setting it on the tr directly, but on actually checking this, it appears that even fairly antiquated browsers do. Unfortunatly its part of a form and Database form and I dont need anyone messing with it. But here is a snippet: tr class="color1"></tr |
|
td ><a href="http://www.xxxxxxt.com/TELS/AddUser.php? OP=Delete&Netid=noone"><img src="garbage.jpg" border="0" width="24" height="24" alt="Symbols-Delete-icon.JPG (892 bytes)"></a></td td >noone</td td >noone</td td > Mike</td td > Peloso</td td > AU</td td > Lu</td td > 25.00</td /tr tr class="color2"></tr td ><a href="http://www.xxxxxxt.com/TELS/AddUser.php? OP=Delete&Netid=fsaf"><img src="garbage.jpg" border="0" width="24" height="24" alt="Symbols-Delete-icon.JPG (892 bytes)"></a></td td >fsaf</td td >fsaf</td td > sdfsdf</td td > sdfsf</td td > sdf</td td > sdfsad</td td > 25.00</td /tr tr class="color1"></tr td ><a href="http://www.xxxxxx.com/TELS/AddUser.php? OP=Delete&Netid=efdwfe"><img src="garbage.jpg" border="0" width="24" height="24" alt="Symbols-Delete-icon.JPG (892 bytes)"></a></td td >efdwfe</td td >efdwfe</td td > Mike</td td > Peloso</td td > RU</td td > Lu</td td > 25.00</td /tr tr class="color2"></tr td ><a href="http://www.xxxxxx.com/TELS/AddUser.php? OP=Delete&Netid=mpeloso"><img src="garbage.jpg" border="0" width="24" height="24" alt="Symbols-Delete-icon.JPG (892 bytes)"></a></td td >mpeloso</td td >mpeloso</td td > Mike</td td > Peloso</td td > RU</td td > Lu</td td > 25.00</td /tr The CSS: .color1{ background: #CCFFCC; } .color2{ background:#BFD8BC; } |
#10
| |||
| |||
|
|
On 01/13/09 15:08, Mike wrote: On Jan 13, 5:01 pm, "Nik Coughlin" <nrkn.... (AT) gmail (DOT) com> wrote: "Jukka K. Korpela" <jkorp... (AT) cs (DOT) tut.fi> wrote in messagenews:jX7bl.118652$_03.109122 (AT) reader1 (DOT) news.saunalahti.fi... But why? If you set background for tr, then this background will shine through in the cells, if they have the default background setting, transparent. If this is not the case, there is something special that prevents that. I seem to recall that some user agents wouldn't apply a background to tds by setting it on the tr directly, but on actually checking this, it appears that even fairly antiquated browsers do. Unfortunatly its part of a form and Database form and I dont need anyone messing with it. But here is a snippet: tr class="color1"></tr It looks like you're terminating your "tr" elements before adding in the "td" elements. td ><a href="http://www.xxxxxxt.com/TELS/AddUser.php? OP=Delete&Netid=noone"><img src="garbage.jpg" border="0" width="24" height="24" alt="Symbols-Delete-icon.JPG (892 bytes)"></a></td td >noone</td td >noone</td td > Mike</td td *> Peloso</td td > AU</td td > Lu</td td > 25.00</td /tr tr class="color2"></tr td ><a href="http://www.xxxxxxt.com/TELS/AddUser.php? OP=Delete&Netid=fsaf"><img src="garbage.jpg" border="0" width="24" height="24" alt="Symbols-Delete-icon.JPG (892 bytes)"></a></td td >fsaf</td td >fsaf</td td > sdfsdf</td td *> sdfsf</td td > sdf</td td > sdfsad</td td > 25.00</td /tr tr class="color1"></tr td ><a href="http://www.xxxxxx.com/TELS/AddUser.php? OP=Delete&Netid=efdwfe"><img src="garbage.jpg" border="0" width="24" height="24" alt="Symbols-Delete-icon.JPG (892 bytes)"></a></td td >efdwfe</td td >efdwfe</td td > Mike</td td *> Peloso</td td > RU</td td > Lu</td td > 25.00</td /tr tr class="color2"></tr td ><a href="http://www.xxxxxx.com/TELS/AddUser.php? OP=Delete&Netid=mpeloso"><img src="garbage.jpg" border="0" width="24" height="24" alt="Symbols-Delete-icon.JPG (892 bytes)"></a></td td >mpeloso</td td >mpeloso</td td > Mike</td td *> Peloso</td td > RU</td td > Lu</td td > 25.00</td /tr The CSS: .color1{ * * background: #CCFFCC; } .color2{ * * background:#BFD8BC; }- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - |
![]() |
| Thread Tools | |
| Display Modes | |
| |