
-
AuthorPosts
-
November 1, 2015 at 8:11 pm #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!
November 2, 2015 at 2:12 pm #528486Hi!
Can you please post the link to your page and point out the elements you would like to edit?
Regards,
YigitNovember 2, 2015 at 8:52 pm #528789November 2, 2015 at 9:18 pm #528801November 2, 2015 at 9:19 pm #528802Hmm, your link function doesn’t seem to be operating for some reason.
website: http://www.essentialifecoaching.com/
photo of mobile view: http://imgur.com/BM2egIaNovember 3, 2015 at 8:13 am #529029Hi!
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,
IsmaelNovember 3, 2015 at 4:34 pm #529429Yes, 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!
November 4, 2015 at 3:13 pm #530057Hey!
can you show us the result you want to achieve please?
Best regards,
AndyNovember 4, 2015 at 10:41 pm #530425Yes, I just basically want it to look like all the other sections of the website:
Thanks!
November 5, 2015 at 10:16 pm #531214Hi!
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!
AndyNovember 10, 2015 at 12:44 am #532981Sorry 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):
In mobile view, these negative margins seem to be causing the quote section to fall behind the other elements and be overlapped:
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:
What we would like for it to do, is to display the quote section exactly like the other sections, and look like this:
Thanks for your help!
November 12, 2015 at 3:12 pm #534797Hi!
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!
AndyNovember 12, 2015 at 7:20 pm #535040The test site content has been taken down, since this change was requested after rollout, but the login to the live site is:
November 13, 2015 at 1:53 pm #535369Hi!
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,
AndyNovember 13, 2015 at 4:35 pm #535501Here you go:
November 13, 2015 at 5:25 pm #535539Hey!
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,
AndyNovember 13, 2015 at 9:00 pm #535720My 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
November 16, 2015 at 3:30 pm #536527Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.