PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
DataGrid - Changing the header links color

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Structures
View previous topic :: View next topic  
Author Message
miketad



Joined: 24 Dec 2007
Posts: 3

PostPosted: Mon Dec 24, 2007 1:57 pm    Post subject: DataGrid - Changing the header links color Reply with quote

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
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1053

PostPosted: Mon Dec 24, 2007 5:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
miketad



Joined: 24 Dec 2007
Posts: 3

PostPosted: Mon Dec 24, 2007 5:33 pm    Post subject: Reply with quote

Hi mark,
this decleration doesn't seem to work.

Michael
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1053

PostPosted: Mon Dec 24, 2007 5:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
miketad



Joined: 24 Dec 2007
Posts: 3

PostPosted: Mon Dec 24, 2007 5:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Structures All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software