riftas Posted January 12, 2022 Posted January 12, 2022 Hello! We decided to spice up our contact page by adding images of our team members with the intent that if you hover over the images it switches to another image where we're making a silly face. I followed this guide on how to set that up, it looks fine while editing but when viewing the published page the images jump around a bit. Here's our current page without the hover using image cards https://www.rift.no/kontakt And here's the test page I've been playing around on https://www.rift.no/kontakt-new I've been trying to get it to look like the current page. The text is text-boxes with a bunch of new lines to get it into the middle, which is not ideal because when you then view the page on mobile there's a ton of space between each photo. Ideally I'd love for the image and the text to stay on the same 'line' next to each other. Thanks in advance!
tuanphan Posted January 12, 2022 Posted January 12, 2022 You mean the hover image not same size with current image? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
riftas Posted January 12, 2022 Author Posted January 12, 2022 Yes? They are the same size though. But when published it looks to become larger. While editing there's a space between each image.
tuanphan Posted January 13, 2022 Posted January 13, 2022 Don't remove/edit any code in your current code Add this to DESIGN > CUSTOM CSS /* Fix image hover */ .image-swap { position: relative; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
riftas Posted January 13, 2022 Author Posted January 13, 2022 That fixed it, thank you!! One more thing, is there a way to force the text to stay next to the image when on mobile? Also, is there a way to give the text box another color? To get the same card look as we have on the current page? (Not as important, but if there's an easy solution I'm all ears 😛)
tuanphan Posted January 15, 2022 Posted January 15, 2022 On 1/13/2022 at 2:59 PM, riftas said: That fixed it, thank you!! One more thing, is there a way to force the text to stay next to the image when on mobile? Also, is there a way to give the text box another color? To get the same card look as we have on the current page? (Not as important, but if there's an easy solution I'm all ears 😛) Add to Design > Custom CSS @media screen and (max-width:767px) { div#page-619e10733781d92120a08876 .span-6 { width: 50% !important; float: left !important; clear: none !important; } div#page-619e10733781d92120a08876 p:empty { display: none; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment