[Resolved] mobile formatting

Home Forums Support [Resolved] mobile formatting

Home Forums Support mobile formatting

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1260695
    gedosan

    Hi guys

    Just a quick one if I may.

    Scroll down the page till you get to the ‘Pro Tip’ callout. How do I get this so it fits in the viewport on mobile, please? I’ve tried putting @media (max-width:768px) before it but doesn’t appear to work.

    Thanks!

    #1261377
    David
    Staff
    Customer Support

    Hi there,

    can you disable the cache plugin so we can take a closer look?

    #1261433
    gedosan

    Sorry yes of course. Done!

    #1261470
    David
    Staff
    Customer Support

    Try this instead:

    .mini_callout {
        position: relative;
        padding: 20px 20px;
        background: #eeeeee;
        margin-bottom: 24px;
        margin-left: -20px;
        box-sizing: border-box;
        width: calc(100% + 30px);
    }
    @media (min-width: 769px) {
        .mini_callout {
            width: calc(100% + 40px);
        }
    }
    
    @media (min-width: 1024px) {
        .mini_callout {
            padding: 20px 35px;
            width: calc(100% + 71px);
            margin: 40px 0 24px -35px;
        }
    }
    #1261546
    gedosan

    Top man, thanks mate.

    #1262540
    David
    Staff
    Customer Support

    You’re welcome

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