MediaWiki:Common.css: Difference between revisions

From American Election Wiki
Jump to navigation Jump to search
Peoplesconcord (talk | contribs)
No edit summary
Tags: Mobile edit Mobile web edit
Peoplesconcord (talk | contribs)
No edit summary
Tags: Mobile edit Mobile web edit
Line 5: Line 5:
     clear: right;
     clear: right;
     margin: 0 0 1em 1em;
     margin: 0 0 1em 1em;
     width: auto;
     width: 300px;
     border: 1px solid #aaa;
     border: 1px solid #aaa;
     background-color: #f9f9f9;
     background-color: #f9f9f9;
     font-size: 90%;
     font-size: 90%;
     line-height: 1.4em;
     line-height: 1.4em;
}
.infobox {
    width: 300px;      /* or whatever fixed width you want */
    max-width: 100%;    /* keeps it responsive on smaller screens */
    float: right;      /* or left, if you want it on the side */
    margin: 0 0 1em 1em; /* spacing around it */
}
}

Revision as of 21:58, 28 September 2025

/* CSS placed here will be applied to all skins */
/* Standard infobox styling */
table.infobox {
    float: right;
    clear: right;
    margin: 0 0 1em 1em;
    width: 300px;
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    font-size: 90%;
    line-height: 1.4em;
}