You need to sign in to do that
Don't have an account?
Anand Jeevakan 5
Is it possible to apply CSS styles to text inside the data table?
<apex:stylesheet value="{!$Resource.relatedList}" />
....
<apex:pageBlock title="Assessment Service Area">
<apex:pageBlockTable value="{!getASAList}" var="asmtServiceArea">
<apex:column styleClass = "link" value="{!asmtServiceArea.Name}" />
<apex:column styleClass = "link" value="{!asmtServiceArea.Service_Area__c}"/>
<apex:column styleClass = "link" value="{!asmtServiceArea.Service_Area_Level__c}"/>
<apex:column styleClass = "link" value="{!asmtServiceArea.Minutes__c}"/>
</apex:pageBlockTable>
I tried CSS file stored in Static resource as well as inline stylesheet, but the styles are not reflected in the text inside the table columns. Please help!
....
<apex:pageBlock title="Assessment Service Area">
<apex:pageBlockTable value="{!getASAList}" var="asmtServiceArea">
<apex:column styleClass = "link" value="{!asmtServiceArea.Name}" />
<apex:column styleClass = "link" value="{!asmtServiceArea.Service_Area__c}"/>
<apex:column styleClass = "link" value="{!asmtServiceArea.Service_Area_Level__c}"/>
<apex:column styleClass = "link" value="{!asmtServiceArea.Minutes__c}"/>
</apex:pageBlockTable>
I tried CSS file stored in Static resource as well as inline stylesheet, but the styles are not reflected in the text inside the table columns. Please help!
Thank you.
But the code you posted do not have styles for texts within the <TD>.
I need the styles to be implemented for the texts displayed in the cell. Any suggestions will be helpful.
td {
vertical-align: bottom;
border: 1px solid #000;
border-spacing: 0;
border-collapse: collapse;
text-align:center;
// add your style for text
}
I missed few points in my first post.
1. I'm rendering the VF page as PDF
2. I'm trying to change the appearance of the links that are displayed in related list.
3. The PDF prints them in blue color and underlined them.
I used similar to the one you suggested:
.link
{
a:link {color: black;
text-decoration: none;}
a:visited {color: black;
text-decoration: none;}
a:hover {color: black;
text-decoration: none;}
a:active {color: black;
text-decoration: none;}
}
It did not work. I'm not sure if there is any solution exits for this. Hence I'm moving to Conga Composer.
Thanks for your time and help.