| View previous topic :: View next topic |
| Author |
Message |
miketad
Joined: 24 Dec 2007 Posts: 3
|
Posted: Mon Dec 24, 2007 1:57 pm Post subject: DataGrid - Changing the header links color |
|
|
Hi,
I'm trying to change the font-color of the header links on the datagrid.
I'm using CSS and I used the following line:
$tableHeader->updateRowAttributes(0,array('class' => 'dgHead'),false);
however, the dgHead class has no effect on the link color.
I'm assuiming it's because the links are within the <a > </a> tags, is that assumption correct?
if so, how can I change the class of the <a> tag in order to make the appropriate changes?
I'll appreciate any help in this matter,
Michael |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
Posted: Mon Dec 24, 2007 5:26 pm Post subject: |
|
|
I haven't tested it, but the following style declaration should work:
| Code: |
th.dgHead a:link {
color: white;
}
|
(similar for a:visited etc.) |
|
| Back to top |
|
 |
miketad
Joined: 24 Dec 2007 Posts: 3
|
Posted: Mon Dec 24, 2007 5:33 pm Post subject: |
|
|
Hi mark,
this decleration doesn't seem to work.
Michael |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
Posted: Mon Dec 24, 2007 5:36 pm Post subject: |
|
|
| miketad wrote: | | this decleration doesn't seem to work. |
Do you still have the updateRowAttributes() call in your code? If not, you'll need something like this:
| Code: |
table thead th a:link {
color: white;
}
|
|
|
| Back to top |
|
 |
miketad
Joined: 24 Dec 2007 Posts: 3
|
Posted: Mon Dec 24, 2007 5:56 pm Post subject: |
|
|
ok, it's seems to work now,
it appears that since the table is under the datagrid class those declerations didn't work, i used the following code:
.datagrid th a:link, .datagrid th a:visited {
color:red;
}
thank you very much for you help,
Michael. |
|
| Back to top |
|
 |
|