Tagged: column, negative margin
-
AuthorPosts
-
January 17, 2017 at 4:43 pm #734799
Hi Enfold team and thanks for a great theme and awesome support.
Question:
I have three 1/3-columns which i’ve added a negative top margin to (-250px) to achieve the same effect that is presented in the Enfold Medical demo.
This looks great in desktop view, but in mobile view the three columns end up on top of each other. If I remove the negative top margin, the columns present themselves as they should, after one another vertically.Thanks in advance!
Br, gorehallingJanuary 17, 2017 at 4:47 pm #734803Hey!
Please enable the custom css class field: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and then edit your column elements which have negative top margins and give them a custom CSS class and then add following code to Quick CSS in Enfold theme options under General Styling tab
@media only screen and (max-width: 767px) { .your-custom-class { margin-top: 0!important; }}
Best regards,
YigitJanuary 17, 2017 at 5:28 pm #734836Hi Yigit,
that worked like a charm, thanks for the quick reply!Another question on the same topic:
Is there a way(in mobile view) to prevent these columns with negative margin to overlap content that is in the color sections above and below.Br, gorehalling
January 17, 2017 at 5:31 pm #734842Hey!
Can you please post the link to your page and a screenshot showing the issue?
You can upload your screenshots on imgur.com or Dropbox public folder and post the links here.Regards,
YigitJanuary 18, 2017 at 9:27 am #735201Hi Yigit,
here comes som screenshots of illustrations explaining the problem as well as a link to the page.
Br, gorehalling
January 22, 2017 at 10:06 am #736925Hi!
I’m sorry but I can’t find that section in any page. Could you please provide a link or url to the actual page with the issue?
Best regards,
IsmaelJanuary 23, 2017 at 12:17 pm #737205Sorry Ismael, wrong link :)
Here goes:
January 23, 2017 at 2:33 pm #737257Hi!
Please add following code to Quick CSS as well
.your-custom-class { margin-bottom: 0!important; }
Best regards,
YigitJanuary 23, 2017 at 3:10 pm #737273Hi Yigit,
thanks for the reply, but no luck unfortunately. Things look as they should in desktop view but they still overlap the color sections above and below in mobile view.
Anything I’ve missed?
BR, gorehalling
January 24, 2017 at 1:50 pm #737736January 24, 2017 at 3:20 pm #737783Sorry forgot, now it’s done :)
January 24, 2017 at 5:32 pm #737845Hi!
I think your case the best would be hiding your section on mobile and replacing with another one which is made for mobile version of the theme that would be hidden on desktop – http://kriesi.at/documentation/enfold/hide-menu-itemselements-on-mobile/
Best regards,
YigitJanuary 25, 2017 at 9:58 am #738222Hi again Yigit,
yeah – I guess you’re right. Might be easier to do it that way. But in that case I have a question:Is it possible to give an element multiple css-classes, or are they limited to only one css-class per element?
Either way – thanks for your help so far!
BR, gorehalling
January 30, 2017 at 11:07 am #740128Hi,
Yes, it’s possible. Just add a space between each class attribute.
Best regards,
IsmaelJuly 14, 2017 at 1:44 pm #821144This reply has been marked as private.July 14, 2017 at 5:18 pm #821291Hi vdarend,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
#av_section_1 { margin-top: -75px; }
But that section has an overlay with 0.5 opacity and you need to decide what to do with it.
If you need further assistance please let us know.
Best regards,
VictoriaJuly 17, 2017 at 9:58 am #822447This reply has been marked as private.July 17, 2017 at 10:17 am #822470This reply has been marked as private.July 17, 2017 at 5:42 pm #822769Hi vdarend,
Not sure I understand, what you’re referring to. Do you have a screenshot?
Best regards,
VictoriaJuly 17, 2017 at 10:44 pm #822981This reply has been marked as private.July 18, 2017 at 8:50 am #823144This reply has been marked as private.July 19, 2017 at 3:49 pm #824039Hi vdarend,
I see the websites and do not see screenshots of your issues. Could you please reattach those?
Best regards,
VictoriaAugust 9, 2017 at 11:15 am #836289This reply has been marked as private.August 15, 2017 at 9:12 am #839116Hi,
Thank you for the update.
Please add the following css modification in the Quick CSS field. It will remove the top margin on mobile view.
@media only screen and (max-width: 989px) { /* Add your Mobile Styles here */ #diepvrieswarehouse .flex_column_table { margin-top: 0 !important; } }
Best regards,
IsmaelAugust 15, 2017 at 11:02 am #839182This reply has been marked as private.August 15, 2017 at 11:35 am #839202Hi Pim,
Seem to work. Here is what I see http://imgur.com/a/ShyEN, the same on my mobile. Could you please clear the cache or check on different mobile device, check again and get back to us.
Best regards,
VictoriaAugust 15, 2017 at 11:52 am #839212This reply has been marked as private.August 16, 2017 at 7:27 am #839731Hi,
Please add a unique Section ID to the color section that contains the columns then use the css code that we provided above. Just replace the “#diepvrieswarehouse” selector with the custom Section ID.
@media only screen and (max-width: 989px) { /* Add your Mobile Styles here */ #YOURSECTIONIDHERE.flex_column_table { margin-top: 0 !important; } }
Best regards,
IsmaelAugust 22, 2017 at 11:16 am #842419This reply has been marked as private.August 22, 2017 at 1:31 pm #842531Hi vdarend,
It looks fine on mobile. Could you please clear the cache, try on another mobile device, check again and get back to us.
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- The topic ‘Negative margins on columns on mobile device’ is closed to new replies.