[Resolved] sidebar ads alignment on mobile

Home Forums Support [Resolved] sidebar ads alignment on mobile

Home Forums Support sidebar ads alignment on mobile

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1064620
    Femke

    Hi,

    On my site I have sidebars with ads and images. On desktop it looks good. But on mobile the images are aligned left and it should be aligned in the middle just like on desktop. Is there a way to get this aligned?

    #1064663
    David
    Staff
    Customer Support

    Hi there,

    you can centre align the first to widgets with this CSS:

    @media (max-width: 768px) {
        .inside-right-sidebar aside:first-child, .inside-right-sidebar aside:nth-child(2) {
            text-align: center;
        }
    }
    #1064689
    Femke

    That worked, thanks!

    #1064700
    David
    Staff
    Customer Support

    You’re welcome

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