Tagged: alignment, background image, color section, enfold
-
AuthorPosts
-
May 22, 2017 at 9:54 pm #797923
Hello,
Could you let me know how to change the alignment of a background image in a fixed color section, for mobile only? I only need it done one two different pages – so I created a custom class for the color section (top-image-align-fix) and I’m currently using the below code, but with no results.
@media only screen and (max-device-width: 1024px) {
.top-image-align-fix {
background-position: top center!important;
}}May 23, 2017 at 12:11 am #797984Hey jPickle,
To target mobile only use the following media query:
@media only screen and (min-width: 767px) {...}
Best regards,
Jordan ShannonMay 23, 2017 at 12:46 am #797996Thanks Jordan – totally had that syntax off and didn’t realize it. However, I’ve corrected it now – but it’s still not giving me any results. My new code is below, and basically the top of my image is getting chopped off – it looks like it’s still aligning the image ‘center center’ like the desktop version. Would you be able to check it out, and let me know what I’m getting incorrect?
@media only screen and (min-width: 767px) {
.top-image-align-fix {
background-position: top center!important;
}}May 23, 2017 at 12:48 am #797998Hi,
Is it for the top image? Please provide a screenshot for how the image is appearing on your end.
Best regards,
Jordan ShannonMay 23, 2017 at 1:23 am #798005Yes, the top image – the link below is how it’s appearing (top of the image getting cut off. I only noticed it when I loaded it on my phone, vs resizing my browser to a smaller width.
May 23, 2017 at 1:26 am #798008Hi,
I see. Which phone are you viewing it from?
Best regards,
Jordan ShannonMay 23, 2017 at 1:28 am #798010iPhone 6, but my client pulled it up a phone that was quite a bit larger – and it was getting cut off there as well.
May 23, 2017 at 1:52 am #798014Hi,
It seems to be displaying normally on my phone. So I will ask my teammates to look into this also.
Best regards,
Jordan ShannonMay 29, 2017 at 12:44 am #800909Have your teammates looked into this yet?
Thank you
May 29, 2017 at 7:59 pm #801216Hi,
Apologies, on not receiving a reply to this yet, I will check again.
Best regards,
Jordan Shannon -
AuthorPosts
- You must be logged in to reply to this topic.