Scenario:
To have a table that would shade each alternative row.
Solution:
In your css file or even in the visualforce page place in the following:
<apex:page standardcontroller="Contact">
<apex:form id="reportform"> <!-- Start of ReportForm-->
<apex:dataTable value="{!queryResult}" var="r" id="ttable" border="0" rowClasses="even,odd">
<!--yourcode here-->
</apex:dataTable>
</apex:form>
</apex:page>
Now you have each other row shaded gray/white.
To have a table that would shade each alternative row.
Solution:
In your css file or even in the visualforce page place in the following:
- In CSS:
- .odd {
background-color: #FCF7F7;
}
.even {
background-color: #E3DCDB;
} - Inside the VF Page:
<apex:page standardcontroller="Contact">
<apex:form id="reportform"> <!-- Start of ReportForm-->
<apex:dataTable value="{!queryResult}" var="r" id="ttable" border="0" rowClasses="even,odd">
<!--yourcode here-->
</apex:dataTable>
</apex:form>
</apex:page>
Now you have each other row shaded gray/white.
No comments:
Post a Comment