Viewing 30 posts - 1 through 30 (of 42 total)
  • Author
    Posts
  • #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, gorehalling

    #734803

    Hey!

    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,
    Yigit

    #734836

    Hi 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

    #734842

    Hey!

    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,
    Yigit

    #735201

    Hi Yigit,

    here comes som screenshots of illustrations explaining the problem as well as a link to the page.

    Br, gorehalling

    #736925

    Hi!

    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,
    Ismael

    #737205

    Sorry Ismael, wrong link :)

    Here goes:

    #737257

    Hi!

    Please add following code to Quick CSS as well

    .your-custom-class {
        margin-bottom: 0!important;
    }

    Best regards,
    Yigit

    #737273

    Hi 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

    #737736

    Hi,

    Can you please switch user role to administrator?

    Best regards,
    Yigit

    #737783

    Sorry forgot, now it’s done :)

    #737845

    Hi!

    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,
    Yigit

    #738222

    Hi 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

    #740128

    Hi,

    Yes, it’s possible. Just add a space between each class attribute.

    Best regards,
    Ismael

    #821144
    This reply has been marked as private.
    #821291

    Hi 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,
    Victoria

    #822447
    This reply has been marked as private.
    #822470
    This reply has been marked as private.
    #822769

    Hi vdarend,

    Not sure I understand, what you’re referring to. Do you have a screenshot?

    Best regards,
    Victoria

    #822981
    This reply has been marked as private.
    #823144
    This reply has been marked as private.
    #824039

    Hi vdarend,

    I see the websites and do not see screenshots of your issues. Could you please reattach those?

    Best regards,
    Victoria

    #836289
    This reply has been marked as private.
    #839116

    Hi,

    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,
    Ismael

    #839182
    This reply has been marked as private.
    #839202

    Hi 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,
    Victoria

    #839212
    This reply has been marked as private.
    #839731

    Hi,

    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,
    Ismael

    #842419
    This reply has been marked as private.
    #842531

    Hi 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

Viewing 30 posts - 1 through 30 (of 42 total)
  • The topic ‘Negative margins on columns on mobile device’ is closed to new replies.