Hello,
I seem to have an image centering problem.
On the desktop browser it is perfect.
On the iPhone browser it is not centered.
Is there something I can do about this?
Thank you
Hey Jasmer!
Thank you for using Enfold.
Give the section an id, use “custom-section” for example. Add this to the Quick CSS field to adjust the background position on mobile device:
@media only screen and (max-width: 767px) {
#custom-section .av-parallax.avia-full-stretch.active-parallax {
background-position: center center !important;
}}
Regards,
Ismael
Thanks Ismael. It seems like you are telling me to give the section an ID and name it anything I want. Then put that section name in the code above. But how do I give the section an ID? Where do I create that ID?
Thank you for your help!
Hey!
Please see – http://kriesi.at/documentation/enfold/wp-content/uploads/sites/2/2013/12/color-section-ID.png
Regards,
Yigit
Awesome Yigit! I think I need to control the position of the photo left or right. How can I edit that code so I can move it over a few pixels to the left or right?
Thank you!
Hey!
just add
left: 10px;
or
right: 10px;
to the code.
Regards,
Andy
Hey Andy!
Thanks. I tried that in a few places in the code but it didn’t work. Maybe I’m not coding it correctly. Would you mind showing me?
Thanks for your time..
Hi!
You can try something like this
@media only screen and (max-width: 767px) {
#custom-section .av-parallax.avia-full-stretch.active-parallax {
background-position: 50% 20% !important;
}}
Refer to this link for more info regarding background-position property: http://www.w3schools.com/cssref/pr_background-position.asp
Regards,
Ismael
Thank you Ismael! This solved the issue.
Much appreciation
Problem solved
Hi!
let us know in a new ticket, if you need help again related to the theme. We are happy to assist!
Cheers!
Andy