[Resolved] TOP BAR WIDGETS: SAME ALIGNMENT ON DESKTOP AND MOBILE

Home Forums Support [Resolved] TOP BAR WIDGETS: SAME ALIGNMENT ON DESKTOP AND MOBILE

Home Forums Support TOP BAR WIDGETS: SAME ALIGNMENT ON DESKTOP AND MOBILE

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #889430
    Iván

    Hi Tom,

    I have two text widgets o my top bar: one on the left; the other, on the right. On mobile, they are centered, but I would like to maintain the same alignment than on desktop: one on the left; the other, on the right. Is it possible?

    Thanks so much!!

    #889525
    Leo
    Staff
    Customer Support

    Hi Ivan,

    Give this CSS a shot:

    @media (max-width: 768px) {
        .top-bar-align-left .inside-top-bar>.widget:nth-child(odd) {
            float: left !important;
            margin-right: 10px !important;
        }
        .top-bar-align-left .inside-top-bar>.widget:nth-child(even) {
            margin-left: 10px !important;
            float: right !important;
        }
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know 🙂

    #891453
    Iván

    It worked perfectly!

    Thanks so much, Leo!

    #891892
    Leo
    Staff
    Customer Support

    No problem 🙂

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