MediaWiki:Common.css: Difference between revisions

From American Election Wiki
Jump to navigation Jump to search
Peoplesconcord (talk | contribs)
Created page with "CSS placed here will be applied to all skins: Standard infobox styling: table.infobox { float: right; clear: right; margin: 0 0 1em 1em; width: auto; border: 1px solid #aaa; background-color: #f9f9f9; font-size: 90%; line-height: 1.4em; }"
Tags: Mobile edit Mobile web edit
 
Peoplesconcord (talk | contribs)
No edit summary
Tags: Mobile edit Mobile web edit
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
<style>
/* Standard infobox styling */
/* Center headers like "Incumbent" */
table.infobox {
.infobox .infobox-above {
     float: right;
     text-align: center !important;
    clear: right;
    margin: 0 0 1em 1em;
    width: auto;
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    font-size: 90%;
    line-height: 1.4em;
}
}
/* Center table headers */
.infobox th {
    text-align: center !important;
}
/* Keep table data left-aligned */
.infobox td {
    text-align: left !important;
}
</style>

Latest revision as of 23:04, 28 September 2025

<style>
/* Center headers like "Incumbent" */
.infobox .infobox-above {
    text-align: center !important;
}

/* Center table headers */
.infobox th {
    text-align: center !important;
}

/* Keep table data left-aligned */
.infobox td {
    text-align: left !important;
}
</style>