MyWiki:Catalogue of CSS classes/Wikitable

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by imported>Strainu at 22:16, 25 October 2021 (Reverted 4 edits by 24.45.134.47 (talk): Wrong background color). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The wikitable class applies specific CSS styles to tables.

Rules for class=wikitable
Property Screen[a] Print[b] Mobile[c]
Table
margin 1em 0
background-color #f9f9f9 white transparent
border 1px #aaa solid
border-collapse collapse
color black
Header
border 1px #aaa solid
border-right 1px solid #EEE
border-right
last-child
none
padding 0.3em 0.4em 0.2em
background-color #f2f2f2 white transparent
font-weight bold
text-align center
Caption
font-weight bold
text-align center left
Row
border 1px #aaa solid
border-bottom 1px solid #EEE
border-bottom
last-child
none
padding 0.3em 0.4em 0.2em
Cell
border 1px #aaa solid
border-bottom 1px solid #EEE
border-right 1px solid #EEE
border-right
last-child
none
padding 0.3em 0.4em 0.2em
Rules for class="wikitable plainrowheaders"
Header with scope="row"[a]
border 1px #aaa solid
padding 0.3em 0.4em 0.2em
background-color #f2f2f2 white
font-weight normal
text-align left