Hi,

 I tried both your suggestions my css looks like this now

td.action
{
  font-family: verdana, tahoma, arial, helvetica;
  font-size: x-small;
  font-weight: bold;
  text-decoration: none;
  color: white !important;
}

but still it appears in black and also I found that even though I specify a
specific styleclass it does not get used

<display:table width="99%" name="tablerows" scope="session" pagesize="15"
requestURI="http://nycnt-ast572:7032/mffsstruts/mffs.jsp";>
         <display:column property="actions" styleClass="action" title="Actions"
width="15%" />
         <display:column property="productID" title="product ID" width="10%"
sort="true"/>
         <display:column property="productDescription" title
="ProductDescription" width="43%" sort="true"/>
         <display:column property="allocationType" title="Allocation Type" width
="10%" sort="true"/>
         <display:column property="categoryName" title="Category Name" width
="22%" sort="true"/>
         <display:setProperty name="sort.behavior" value="list" />
       </display:table>


here is the resulting HTML

<tr class="tableRowHeader">
<th width="14%" align="right" class="tableCellHeader">Actions</th>
<th width="10%" class="tableCellHeader">
    <a href="http://nycnt-ast572:7032/mffsstruts/mffs.jsp?order=dec&sort=1";
class="tableCellHeader">product ID</a>
</th>
<th width="40%" class="tableCellHeader">
    <a href="http://nycnt-ast572:7032/mffsstruts/mffs.jsp?order=dec&sort=2";
class="tableCellHeader">ProductDescription</a>
</th>
<th width="18%" class="tableCellHeader">
   <a href="http://nycnt-ast572:7032/mffsstruts/mffs.jsp?order=dec&sort=3"; class
="tableCellHeader">Index1 Name</a>
</th>
<th width="18%" class="tableCellHeader">
   <a href="http://nycnt-ast572:7032/mffsstruts/mffs.jsp?order=dec&sort=4"; class
="tableCellHeader">Index2 Name</a>
</th>
</tr>


As you can see there is no mention of the styleClass="action" in the resultant
HTML.

Regards
Rajesh J


                                                                                       
                              
                                                                                       
                              
                                          To:     Rajesh Jayabalan/LAM/[EMAIL 
PROTECTED] NYC                             
             "Matt Raible"                cc:                                          
                              
             <[EMAIL PROTECTED]        Subject:     Re: [displaytag-user] help 
styleClass                         
             om>                                                                       
                              
             26 Mar 2003 05:22 PM                                                      
                              
                                                                                       
                              
                                                                                       
                              


A couple of CSS tips that might help you...

1.  Prefix you classes with the HTML element they are on.  For instance, you
might try:

   td.action {} or table td.action {}

2.  You can force overriding of previous rules in a class definition using
"!important".

    color: white !important;

HTH,

Matt

> Hi,
>
>  Here is my display tag.. all the headers except "Action" appears in
> White so I tried a styleClass even then "Action" header appears in
> black. I need to change it to white so that it matches the other
> headers. Kindly help
>
> Regards
> Rajesh J
>
>  <display:table width="99%" name="tablerows" scope="session" pagesize="15"
> requestURI="http://nycnt-ast572:7032/mffsstruts/mffs.jsp";>
>          <display:column property="actions" styleClass="action" title
="Actions"
> width="15%" />
>          <display:column property="productID" title="product ID" width="10%"
> sort="true"/>
>          <display:column property="productDescription" title
> ="ProductDescription" width="43%" sort="true"/>
>          <display:column property="allocationType" title="Allocation
> Type" width ="10%" sort="true"/>         <display:column
> property="categoryName" title="Category Name" width ="22%" sort="true"/>
>          <display:setProperty name="sort.behavior" value="list" />
>        </display:table>
>
> .action
> {
>   font-family: verdana, tahoma, arial, helvetica;
>   font-size: x-small;
>   font-weight: bold;
>   text-decoration: none;
>   color: white;
> }
>
> -------------------------------------------------------
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> _______________________________________________
> displaytag-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user


-- Matt Raible, Raible Designs, Morrison CO US
-- Tel: +1 303 979-5340
-- Mob: +1 720 560-8460
-- Fax: +1 508 256-6471
-- Web: http://www.raibledesigns.com










-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to