Wikipedia talk:Manual of Style/Accessibility/Data tables tutorial: Difference between revisions

Content deleted Content added
Unbulleted lists: some ideas
Dodoïste (talk | contribs)
m Unbulleted lists: layout, will reply after a night of rest
Line 135:
for the percentage of the table width. Neither of them is a good idea, and doesn't offer the flexibility of 'style', although having a single definition of padding is convenient. Padding is defined in the 'wikitable' class:
 
<pre>
<code><nowiki>
.wikitable th, .wikitable td {
border-top-color: #aaaaaa;
Line 154:
padding-left: 0.2em;
}
</pre>
</nowiki></code>
 
Since that applies to each cell, it overrides the value "inherited" from a cellpadding attribute in the table element. The best I can suggest is to either apply <code>style="padding: 0.2em 0.8em;"</code> to each cell that requires padding, or to apply it to each row if you want it throughout the table. Example on a 'per-cell' basis: