Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 1: Line 1:
/* Replace .card-img-top with the actual class if different */
.card-img-top {
.card-img-top {
     padding: 10px; /* Adjust the amount of space you want */
     object-fit: contain !important; /* Forces the whole image to show */
     box-sizing: border-box; /* Ensures padding doesn't increase the total width */
    width: 100%;
    height: 200px; /* You might need to match the extension's default height */
     background-color: #f8f9fa; /* Optional: Adds a background color to the empty space */
}
}

Revision as of 02:46, 27 January 2026

.card-img-top {
    object-fit: contain !important; /* Forces the whole image to show */
    width: 100%;
    height: 200px; /* You might need to match the extension's default height */
    background-color: #f8f9fa; /* Optional: Adds a background color to the empty space */
}