Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #363429

    On my homepage I have 2 color sections, one with text only and one with text and a button.. I am having an issue with the text and button staying centered within the color section on different screen sizes. When I view the site on a larger screen size and everything is on one line it works fine. When I view the site on mobile device like an iPad or iPhone the text and button are not centered within the color section. Can you please provide me with some Quick CSS to fix this or let me know what to do to fix it? I have attached some screen shots so you can see what I am talking about. Thank you in advance!

    #363918

    Hey djshortkut!

    I’m sorry but I’m not sure I understand. They look centered in your screenshots to me and also on your main site. Go ahead and highlight in your screenshot what your trying to do so we can get a better idea.

    Cheers!
    Elliott

    • This reply was modified 9 years, 11 months ago by Elliott.
    #364027
    This reply has been marked as private.
    #364521

    Hey!

    You can either decrease the font size of the h2 inside the text block or add a top margin on the button. Use this on Quick CSS;

    @media only screen and (max-width: 1200px) {
    .avia_textblock h2 {
    font-size: 27px;
    }
    }

    If you want to adjust the button instead, add a custom css class on the buttons. Refer to this link how: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/

    Use “custom-button” for example then add this on Quick:

    @media only screen and (min-width: 900px) and (max-width: 1150px) {
    .custom-button {
    margin-top: 20px;
    }
    }

    Regards,
    Ismael

    #364541

    Thanks Ismael! I added a custom CSS field “custom-button” and tried adding the code below to adjust the top margin on the button but it didn’t do anything. Am I missing something?

    @media only screen and (min-width: 900px) and (max-width: 1150px) {
    .custom-button {
    margin-top: 20px;
    }
    }
    #364544

    Nevermind, I was able to figure it out by modifying the code slightly.

    @media only screen and (min-width: 900px) and (max-width: 1150px) {
    .custom-button {
    margin-top: 9px!important;
    }
    }

    Thank you very much for the help!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Color Section’ is closed to new replies.