Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #716424

    Hi,

    I’ve created a homepage with alternating text blocks and images. These look great on desktop and iPad, but on mobile the images bunch together and the effect is spoiled.

    How do I style the mobile content to correct for this?

    Thanks

    Simon

    #716669

    Hey Simon,

    Yes that is would be the natural flow on a layout like that and it’s difficult to change that other than creating a separate design to only show on mobile. You could try dragging your existing layout into a Color Section element and then give it an ID and then add CSS like this to hide it on mobile:

    @media only screen and (max-width: 767px) {
    #your-desktop-section-id {
      display:none; 
    }
    }

    You can then add another section and add your mobile layout to it and hide the section for screens other than mobile with CSS like this:

    @media only screen and (min-width: 768px) {
    #your-mobile-section-id {
      display:none; 
    }
    }

    Best regards,
    Rikard

    #717266

    Hi Rikard,

    Thank you for your reply.

    The problem with this is that the page is already made up of sections, so that solution isn’t viable. I’ll investigate some more and get back to you .

    best

    Simon

    #717269

    Hey!

    Please do take your time and let us know.
    Richards solution is the most valid, we can assure you for that.

    Thanks a lot

    Cheers!
    Basilis

    #720479

    Hi Rikard, Basilis

    How about:-

    #av_section_2 .entry-content-wrapper {
    display: flex;
    display: -ms-flex;
    flex-direction:column;
    }
    #av_section_2 .avia-builder-el-first {
    order:2;
    }

    #720891

    Hi,

    Thanks for sharing that but I can’t really see any difference on the page? The second part still has the image under the text?

    Best regards,
    Rikard

    #721051

    Sorry Rikard,

    Error was with the section ID:-

    * hack to reorder in single column view the img/text in the second block of the home page*/
    #av_section_2 .entry-content-wrapper {
    display: flex;
    display: -ms-flex;
    flex-direction:column;
    }
    #av_section_2 .entry-content-wrapper .avia-builder-el-first {
    order:1;
    }
    }

    #721369

    Hi,

    Cool! Nice code, thanks for sharing :-)

    Best regards,
    Rikard

    #721424

    Very welcome ;-)

    best

    Simon

    #721792

    Hi,

    Thanks, we’ll keep the thread open in case you have some more tips for us :D

    Best regards,
    Rikard

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