function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mobile vistexmobile vistex 

colspan in a table

hi i have a table where i want to do colspan from particular column. my table looks like following
User-added image
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)
bob_buzzardbob_buzzard
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.