Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #804790

    Hi,

    How do I keep the form fields below centered?

    The screenshot below is from an iPhone 6 and the form fields are off center.
    However, the fields are centered perfectly on an iPhone 7 Plus.

    Why does the Enfold theme not center these automatically? I’d like to know if there is something I can do differently, because I don’t want to center the fields on different devices every time I build a website.

    Thank you,

    Jasmer

    • This topic was modified 7 years, 6 months ago by Jasmer.
    #805394

    Hey Jasmer,

    Add this to quick css:

    
    
    
    @media only screen and (max-width: 767px)  {
    .page-id-18 .avia-builder-el-2{
    padding:0!important;
    }}
     

    Best regards,
    Jordan Shannon

    #805416

    HI Jordan,

    It helps but causes additional problems.

    The white overlay is off. See screenshot below.

    1. I’d like to reduce the width of the form fields so they fit into the overlay evenly.

    2. I’d like to change the height and position of the white overlay to center and also overlay the text.

    I’d like to stay as simple as possible with this CSS, but I like the direction you are going.

    Thank you,

    Jas

    #805623

    Hi,

    Adjust the css to the following:

    @media only screen and (max-width: 767px)  {
    .page-id-18 .avia-builder-el-2{
    padding:20px!important;
    }}

    Let me know if this fixes it.

    Best regards,
    Jordan Shannon

    #806001

    Hi Jordan,

    Yes that is good. But I’d like to increase the top of the overlay by 20px as well.

    I wasn’t everything to stay the same, but I want the white overlay to be taller at the top by 20px. Can you help with that?

    THANK YOU,

    Jas

    #806096

    Hi,

    Then just add the following to the css I gave you:

    padding-top:50px!important;

    Adjust the number to whatever it needs to be.

    Best regards,
    Jordan Shannon

    #806246

    Perfect. This is what I used. But I asked a question above I’d like understand

    “Why does the Enfold theme not center these automatically? I’d like to know if there is something I can do differently, because I don’t want to center the fields via CSS on different devices every time I build a website.”

    Do I need to use a different element? This element should renderr correctly without custom CSS.

    @media only screen and (max-width: 767px)  {
    .page-id-18 .avia-builder-el-2{
    padding:25px!important;
    padding-top:45px!important;
    }}

    Thank you so much for your help,

    Jas

    #806388

    Hi,

    Normally all elements are automatically centered or adjusted to look good on mobile, however, it really all depends on how you have configured your page. Or, perhaps you have a plugin that has some css in conflict with the form styling. In all honesty there could be any number of reason why YOUR specific site does not have a centered form.

    Best regards,
    Jordan Shannon

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.