Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Define image size of modals

Started by mmrpl 9 years ago · 1 replies · 800 views
9 years ago

Hi,

I'm having trouble with the image size of a modal that came with the Ceevee theme. I want it to be 100% width but the image source is just 640px. This might be due to the img "scale-with-grid" class but I'm not sure what exactly defines the grid since the container is already 100% width. Either couldn't find any JS that might determine the size of the img source (there are several sizes available up to 1920px) or some actual settings.

This is the markup of the modal
"div class="mfp-wrap mfp-auto-cursor mfp-fade mfp-ready" tabindex="-1" style="top: 3865px; position: absolute; height: 1051px;"
div class="mfp-container mfp-s-ready mfp-inline-holder"
div class="mfp-content"
div id="modal-1" class="popup-modal">
img class="scale-with-grid" src="/.../4.jpeg" alt="">

Any idea how to get the modal to load a larger image?

Best,
Dennis

9 years ago

Hello there,

is it possible to see your page? Maybe i can tell you where it is defined.

Kind regards,
Michael

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 50 6 hours ago
Support · by Anna, 2 days ago
2 58 9 hours ago
Support · by Justin Young, 10 hours ago
1 28 10 hours ago
Support · by Duc , 1 week ago
2 63 5 days ago
Support · by Colin Hume, 1 week ago
2 53 5 days ago