Regarding the three similar columns each with a photo and special heading (Seniors, Family, Corporate) on the homepage.
I added a background color to each column so it appears that only the special headline is in a gray box the exact width of the photo above. I get the desired effect on desktop but on mobile the gray background is larger than the width of the photo. Should I have done this a different way or is there code I can add so the gray background is responsive and only as wide as the image on all devices?
Thanks!
Hey st,
Please try the following in Quick CSS under Enfold->General Styling:
@media only screen and (max-width: 767px) {
.av-e5u5y-876335338cd19e8230fc02bf621b4040 .flex_column {
max-width: 300px;
display: table;
margin: 0 auto;
margin-bottom: 40px;
}
}
Best regards,
Rikard
Hi,
Please try this CSS instead:
@media only screen and (max-width: 767px) {
.av-e5u5y-876335338cd19e8230fc02bf621b4040 .flex_column {
max-width: 300px;
display: table !important;
margin: 0 auto !important;
margin-bottom: 40px !important;
}
}
Best regards,
Rikard
Thanks Rikard that is perfect.
You can close.
Hi,
Thanks for the update, we’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard