This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Jan van de Laar
Jan van de Laar

I successfully added an extra field in a static page layout. Now I can easily add an image to my static page. If I want to edit the page, the image that is choosen for this page is being presented in his own dimensions. That way I end up with a page that shows a huge image first and underneath that, the content editior appears. Is there a way to resize that image? I tried with CSS (in modules/cms/formwidgets/mediafinder/assets/css/mediafinder.css) with no result at all.

Last updated

jort25758
jort25758

Go to Customize Back-end, and paste the following in the 'Styles' tab:

.field-mediafinder.style-image-single .find-object .icon-container, .field-mediafinder.style-image-single .find-object .icon-container img {
    max-width: 200px;
    max-height: 200px;
}

Of course you can edit the values for max width and height as you prefer.

Last updated

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.