Posted: November 27, 2014 at 1:47 pm
|
Hi, I’m having a problem with the Grid View Template (EE4.3+) plugin. The grid images are fine in IE and Firefox but are distorted (width is narrowed) in Chrome and Safari. What’s happening here and how can I fix this? Here’s the page: http://www.mlmusic.school.nz/music-classes Thanks, Mark |
Hi Mark, This is being caused by these styles: .ee_grid_box img { width: 395px !important; height: 240px !important; margin-left: -50px !important; } Which have been added to your themes styles.css file. If you remove those styles the images will no longer be distorted. |
|
|
Thanks for your reply. What I’m trying to achieve with that piece of CSS is to use the rectangular featured image in the grid by hiding the overflow in the ee_grid_box div and centering it with some minus margin. The designer wanted square images in the grid. Works great in FF and IE but was doing some weird stuff in Chrome and Safari. Removing this CSS gives consistency cross-browser but squashes the image. I’ll have to work on some CSS that will achieve what I want cross-browser unless you any other insights into this? Cheers, Mark |
Hi Mark, Before you try a CSS solution, I recommend trying a built-in WordPress solution where it will served up a cropped, centered thumbnail image. This will make for much faster page load speeds, and cross-browser hacking won’t be necessary. Here’s how to use the built in WordPress thumbnail solution: 1) You go to Settings > Media. Please make a note of what’s set there for thumbnail sizes, then change the Thumbnail size to 200 x 200 (150 x 150 will also work). If it turns out that a CSS based solution is the only option, I can recommend trying this one out: |
|
The support post ‘Grid View Template Images Distorted in Chrome’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.