MediaWiki:Common.css: Difference between revisions
EnWikiAdmin (talk | contribs) No edit summary Tag: Reverted |
EnWikiAdmin (talk | contribs) No edit summary Tag: Reverted |
||
Line 8: | Line 8: | ||
} | } | ||
#p-logo a img { | #p-logo a img { | ||
all: unset; | |||
width: 100%; | width: 100%; | ||
height: auto; | height: auto; |
Revision as of 03:20, 4 November 2024
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
#p-logo a {
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}
#p-logo a img {
all: unset;
width: 100%;
height: auto;
max-width: 135px; /* Set max width as per your layout */
max-height: 135px; /* Set max height if needed */
object-fit: contain; /* Scales the logo to fit the space */
}