Visualforce dataTable: is there a way to stop it from rendering cellpadding attribute?

Posted by codeulike on Stack Overflow See other posts from Stack Overflow or by codeulike
Published on 2010-04-20T09:50:43Z Indexed on 2010/04/20 9:53 UTC
Read the original article Hit count: 467

Filed under:
|
|
|

In Visualforce, I'm using an <apex:dataTable> component as follows:

<apex:dataTable value="{!Qualifications}" var="qual" styleClass="cv_table" >
    <!-- etc...  -->

... and then I'm using CSS to style the table, via the class name. Trouble is, VisualForce renders HTML like this:

<table class="cv_table" id="j_id0:j_id26" border="0" cellpadding="0" cellspacing="0">
    <!-- etc...  -->

The class attribute is there as I wanted, but there's also cellpadding and cellspacing specified, that interfere with my CSS.

Is there a way to stop Visualforce from rendering the cellpadding and cellspacing attributes for an <apex:dataTable>?

© Stack Overflow or respective owner

Related posts about visualforce

Related posts about salesforce