Help:Tables: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 386: | Line 386: | ||
|} | |} | ||
Note the floating table to the right. This paragraph is after the table. Lorem ipsum ... | Note the floating table to the right. This paragraph is after the table. Lorem ipsum ... | ||
</blockquote> | </blockquote> | ||
=== Nested tables === | === Nested tables === | ||
Line 672: | Line 672: | ||
|} | |} | ||
</blockquote></td></tr></table> | </blockquote></td></tr></table> | ||
simply by replacing the parameters of the table (<code>border="1" cellpadding="2"</code> or the like) with <code><nowiki>class="wikitable"</nowiki></code> This is because the ''wikitable'' class in [[MediaWiki:Common.css]] contains a number of ''table.wikitable'' [[w:CSS|CSS]] style rules. These are all applied at once when you mark a table with the class. You can then add additional style rules if desired. These override the class's rules, allowing you to use the class style as a base and build up on it: | simply by replacing the parameters of the table (<code>border="1" cellpadding="2"</code> or the like) with <code><nowiki>class="wikitable"</nowiki></code> This is because the ''wikitable'' class in [[Wikipedia:MediaWiki:Common.css|MediaWiki:Common.css]] contains a number of ''table.wikitable'' [[w:CSS|CSS]] style rules. These are all applied at once when you mark a table with the class. You can then add additional style rules if desired. These override the class's rules, allowing you to use the class style as a base and build up on it: | ||
'''Wiki markup''' | '''Wiki markup''' | ||
<blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;"><pre><nowiki> | <blockquote style="background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;"><pre><nowiki> |