Some frameworks , such as Bootstrap , make use of CSS-based declarations to standardize overall behavior in certain elements.
In this case, padding
:
td, th {
padding: 0;
}
The problem is that when generating content from a WYSIWYG editor, some settings are conflicting with the framework where this content is going to be inserted:
<table border="1" align="left" cellspacing="0" cellpadding="6" style="width:100%">
<!-- ... -->
</table>
Essentially, the cellpadding
attribute will not produce the desired effect since the framework will subscribe to it with the statement above.
Question
reset to the declaration of padding
so that in a specific location the cellpadding
attribute can be used by the browser?
td, th {
padding: auto; /* incorreto pois não existe, mas reflete o que se pretende */
}