![]() |
Autoresize image (article preview)
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
|
You could go:
HTML Code:
.cms_article_preview_image { height: 100px; width: 100px;} |
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?
|
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. |
I decided I can live with it. Thanks for the help Lynn :)
|
All times are GMT. The time now is 03:11 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|