View Full Version : Autoresize image (article preview)
Bram H
08-26-2011, 09:55 PM
Is there a way to force all preview images on the CMS to be in an exact same size so they will fit in a 100x100 container regardless the size they might have in the full article
Lynne
08-26-2011, 10:11 PM
You could go:
.cms_article_preview_image { height: 100px; width: 100px;}
You could end up with some strange looking preview images that way though.
Bram H
08-27-2011, 08:59 AM
Yes that looks weird. Isnt there a work around to let the CMS "zoom" in to find a fitting square dimension as you can see on any other portal software out there, except for vbulletin?
Mooff
08-27-2011, 09:06 AM
You could edit the template and change the <img> tag in the preview part to <div>
And then change the src part to a background. Then it would crop the image and show a 100x100 part of the original image.
But if your image is smaller it will look weird.
In addition you could change the background position around a bit so it doesn't take the upper edge of the image. But again, if your image is to small it still will look weird.
Bram H
08-27-2011, 09:21 AM
I decided I can live with it. Thanks for the help Lynn :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.