You need to sign in to do that
Don't have an account?

colspan in a table
hi i have a table where i want to do colspan from particular column. my table looks like following

my problem is i want to do col span from jan to apr .my visualforce code is
how can make colspan. from jan to apr.(iam getting my header from controller in form of list)
my problem is i want to do col span from jan to apr .my visualforce code is
<apex:page controller="header" showHeader="false"> <style> table { border-collapse: collapse; } table, td, th { border: 1px solid black; } </style> <apex:pageBlock > <table> <tr> <apex:repeat value="{!agrmnts}" var="c"> <td> <apex:outputText value="{!c}"></apex:outputText> </td> </apex:repeat> </tr> <apex:repeat value="{!body}" var="bd"> <tr> <apex:repeat value="{!bd}" var="cd"> <td>{!cd}</td> </apex:repeat> </tr> </apex:repeat> </table> </apex:pageBlock> </apex:page>
how can make colspan. from jan to apr.(iam getting my header from controller in form of list)
Assuming you don't want to do the same colspan for each row, you'll need to wrap the values that you are going to display in a class that also indicates how many columns the value should span.