MediaWiki:Common.css: Difference between revisions

From Wiki
Created page with "→‎CSS placed here will be applied to all skins: .infobox { background: #f9f9f9; border: 1px solid #aaa; padding: 5px; font-size: 95%; line-height: 1.5em; width: 22em; } .infobox td, .infobox th { vertical-align: top; } .infobox caption { font-size: 120%; margin: 0.5em 0; }"
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 8: Line 8:
     line-height: 1.5em;
     line-height: 1.5em;
     width: 22em;
     width: 22em;
    float: right; /* Ensures the infobox floats to the right */
    margin: 0 0 1em 1em; /* Adds space around the infobox */
}
}
.infobox td,
.infobox td,
Line 14: Line 16:
}
}
.infobox caption {
.infobox caption {
    text-align: center !important;; /* Centers the caption */
     font-size: 120%;
     font-size: 120%;
     margin: 0.5em 0;
     margin: 0.5em 0;
}
.infobox-caption {
    text-align: center;
    font-size: 120%;
    margin: 0.5em 0;
}
.infobox img {
    display: block;
    margin: 0 auto; /* Centers the logo horizontally */
    max-width: 100%; /* Ensures the logo scales appropriately */
    height: auto; /* Maintains aspect ratio */
}
}

Latest revision as of 21:54, 2 March 2025

/* CSS placed here will be applied to all skins */

.infobox {
    background: #f9f9f9;
    border: 1px solid #aaa;
    padding: 5px;
    font-size: 95%;
    line-height: 1.5em;
    width: 22em;
    float: right; /* Ensures the infobox floats to the right */
    margin: 0 0 1em 1em; /* Adds space around the infobox */
}
.infobox td,
.infobox th {
    vertical-align: top;
}
.infobox caption {
    text-align: center !important;; /* Centers the caption */
    font-size: 120%;
    margin: 0.5em 0;
}

.infobox-caption {
    text-align: center;
    font-size: 120%;
    margin: 0.5em 0;
}

.infobox img {
    display: block;
    margin: 0 auto; /* Centers the logo horizontally */
    max-width: 100%; /* Ensures the logo scales appropriately */
    height: auto; /* Maintains aspect ratio */
}