(3 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;
}
}
.infobox {
width: 300px; /* or whatever fixed width you want */
/* Center table headers */
max-width: 100%; /* keeps it responsive on smaller screens */
.infobox th {
float: right; /* or left, if you want it on the side */
text-align: center !important;
margin: 0 0 1em 1em; /* spacing around it */
}
}
/* 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 */.infoboxth{text-align:center!important;}/* Keep table data left-aligned */.infoboxtd{text-align:left!important;}</style>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.