Difference between revisions of "MediaWiki:Common.css"
| Line 11: | Line 11: | ||
img.halfwidth { | img.halfwidth { | ||
width: 50%; | width: 50%; | ||
| + | height: auto; | ||
| + | } | ||
| + | |||
| + | img.fullwidth { | ||
| + | width: 100%; | ||
height: auto; | height: auto; | ||
} | } | ||
Revision as of 16:21, 9 June 2018
/* CSS placed here will be applied to all skins */
/* To make images responsive */
.res-img img {
max-width:100%;
width:100%;
height:auto;
}
img.halfwidth {
width: 50%;
height: auto;
}
img.fullwidth {
width: 100%;
height: auto;
}