+ 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">
table {
    border-collapse: collapse;

table, td, th {
    border: 1px solid black;
<apex:pageBlock >
<apex:repeat value="{!agrmnts}" var="c">
<apex:outputText value="{!c}"></apex:outputText>


<apex:repeat value="{!body}" var="bd">
<apex:repeat value="{!bd}" var="cd">


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.