Tagged: , ,

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

    Hello,

    I’m using the Enfold Medical theme template. On the ‘Welcome’ page there is a -200px margin to allow the image and content boxes to overlap the image and sit ‘above’ it. When viewing on mobile this causes problems for me as they overlap the image too much. I want to remove the -200px top margin on mobile but am struggling to do this using a Custom CSS class.

    This is a link to the theme I am using.

    This is how I want it to look on mobile i.e. no -200px margin:

    https://postimg.org/image/fgu1ommpb/

    Could anyone help at all?

    #728775

    Hey DaveA,

    Try adding this in Quick CSS (located in Enfold > General Styling):

    @media only screen and (max-width:767px) {
      .home #av_section_1 .flex_column_table {
        margin-top: -110px !important;
      }
    }

    Just adjust the value as you see fit. Hope this helps :)

    Best regards,
    Nikko

    #729039

    That worked great, thank you! Is there away to only apply it to the homepage and not other pages using the same feature?

    Thanks,

    #729045

    Hi!

    Because of the selector Nikko provided, it would be applied only on homepage actually :)
    If that is not what you meant, can you please elaborate?

    Cheers!
    Yigit

    #730267

    Hi, you were correct and it did only apply to the home page.

    I’ve realized that the code created another issue however. It now overlaps with the ‘Icon Boxes’ below it. Hopefully this image should illustrate it. How can this be fixed?

    https://s29.postimg.org/gc5msq1jb/Capture.jpg

    Thank you,

    #730331

    Hi,

    Would you mind providing a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)

    Best regards,
    Yigit

    #730336

    Hello,

    The link should be hidden and attached.

    Many thanks,

    #730999

    Hi,

    Please adjust the code a bit.

    @media only screen and (max-width: 767px) {
    .home #av_section_1 .flex_column_table:first-child {
        margin-top: -110px !important;
    }
    }

    Best regards,
    Ismael

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