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