MediaWiki:Common.css: Difference between revisions
From Night Vision Wiki
(Created page with "→CSS placed here will be applied to all skins: →To make images responsive: .res-img img { max-width:100%; height:auto; }") |
No edit summary |
||
Line 2: | Line 2: | ||
/* To make images responsive */ | /* To make images responsive */ | ||
. | .full-width-image { | ||
max-width:100%; | position: relative; | ||
height:auto; | overflow: hidden; | ||
max-width: 1800px; | |||
height: auto; | |||
margin-bottom: .6em; | |||
} | |||
.full-width-image img { | |||
max-width: 100%; | |||
height: auto; | |||
width: auto; | |||
} | } |
Latest revision as of 12:05, 8 March 2023
/* CSS placed here will be applied to all skins */ /* To make images responsive */ .full-width-image { position: relative; overflow: hidden; max-width: 1800px; height: auto; margin-bottom: .6em; } .full-width-image img { max-width: 100%; height: auto; width: auto; }