Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #528165

    Hi!

    My site uses negative margins for an overlaying effect, but is it possible to remove the negative margins in mobile view? I’ve tried assigning the element a css class and using the quick css panel to give it 0 margin, but that doesn’t seem to be doing the trick.

    Thanks!

    #528486

    Hi!

    Can you please post the link to your page and point out the elements you would like to edit?

    Regards,
    Yigit

    #528789

    It’s here:

    The blue/green overlaying box with the quote in it is what has the negative margins on it. The site is live, so I’ve added a media query to hide it in mobile view, but it looks like this on a mobile phone: .

    Thanks!

    #528801

    Whoops, links didn’t get in there:
    The website:

    #528802

    Hmm, your link function doesn’t seem to be operating for some reason.

    website: http://www.essentialifecoaching.com/
    photo of mobile view: http://imgur.com/BM2egIa

    #529029

    Hi!

    Try the solution provided on your previous thread: https://kriesi.at/support/topic/mobile-layout-issues/#post-529028

    You added a lot of the whitespace element on the grid row section, remove it on smaller screens by adding the “only_desktop” class attribute.

    Best regards,
    Ismael

    #529429

    Yes, thanks, that works for removing the blank space above the blog section, but I still need to get the blue/green quote section (the one with the negative margins) to display correctly. I’ve used the “only-desktop” attribute to keep it from showing on mobile right now only because it looks very bad and the site is live. I want it to be visible, but I want it to display exactly as all of the other elements in the mobile view. Right now it looks like this: http://imgur.com/U3dhUTX, but I want it to fill 100% of the width, be tall enough to read the quote inside it, and to be flush with the “welcome” section above it and the “blog” section below it.

    Thanks!

    #530057

    Hey!

    can you show us the result you want to achieve please?

    Best regards,
    Andy

    #530425

    Yes, I just basically want it to look like all the other sections of the website:

    View post on imgur.com

    Thanks!

    #531214

    Hi!

    I checked you website on my mobile device and it looks exactly as in the mockup you have send. Could you fix it already?

    Cheers!
    Andy

    #532981

    Sorry for the long delay in response, I’ve been down with a cold.

    No, I didn’t fix it. I’m going to try to re-explain the situation because I’m obviously not explaining it well:

    To get the desktop layout we want, I needed to use negative top and bottom margins on the blue “quote” section ( the one with the image of the pier behind the white text):

    View post on imgur.com

    In mobile view, these negative margins seem to be causing the quote section to fall behind the other elements and be overlapped:

    View post on imgur.com

    I’ve used some custom css to make this quote section not show in mobile view because the site is currently live and being promoted, so obviously we don’t want clients to see it in that state, so it currently looks like this:

    View post on imgur.com

    What we would like for it to do, is to display the quote section exactly like the other sections, and look like this:

    View post on imgur.com

    Thanks for your help!

    #534797

    Hi!

    thanks for the explanation. Can you provide us a test link where we can see the issue please? because we need to be able to inspect the elements in question.

    Cheers!
    Andy

    #535040

    The test site content has been taken down, since this change was requested after rollout, but the login to the live site is:

    #535369

    Hi!

    live site does not help us much, if we can’t see any issues there, because we need to inspect the elements where it’s not working for you, if you want us to be able to provide you some CSS code. Let us know when you are ready and able to provide us a link showing the issue.

    Regards,
    Andy

    #535501

    Here you go:

    #535539

    Hey!

    remove this code which you are using right now:

    @media only screen and (max-width: 767px) {
    .responsive #top #wrap_all .av-flex-cells .no_margin {
    height: auto !important;
    }}
    

    and then use this code:

    @media only screen and (max-width: 767px) { 
    .flex_cell.no_margin.av_two_fifth.avia-builder-el-14.el_after_av_cell_one_fifth.el_before_av_cell_one_fifth {
    width: 116% !important;
    margin-left: -30px !important;
    height: 385px !important;
    }}
    

    Best regards,
    Andy

    #535720

    My quick css does not contain the above code:

    @media only screen and (max-width: 767px) {
    .responsive #top #wrap_all .av-flex-cells .no_margin {
    height: auto !important;
    }}
    

    The only code I have that targets responsive is this:

    @media only screen and (max-width: 767px) {
    .responsive #top #wrap_all .container {
        width: 100%;
        max-width: 100%;
    }
    }

    Is the code you are referencing in a php file, perhaps?

    I tried removing the existing above code and replacing with your supplied code, but it does not solve the problem.

    Thanks

    #536527

    Hey!

    the first code is preventing the second one to work correctly. Don’t know where you are using this code (usually it would be in Quick CSS or custom.css), but I can see it in your source code (when inspecting the elements on your website).

    Best regards,
    Andy

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