FANDOM


Placing size constraints on images using some markup and CSS

CSS code in MediaWiki:Wikia.cssEdit

.userbox-image-container img {
    max-height: 50px;
}

Normal image usageEdit

[[File:Tall image.jpg]]

[[File:Long image.jpg]]

Tall image

Long image

Modified with size constraintsEdit

<span class="userbox-image-container">[[File:Tall image.jpg|50px]]</span>

<span class="userbox-image-container">[[File:Long image.jpg|50px]]</span>

Tall image

Long image

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.