[Resolved] top bar float right mobile device

Home Forums Support [Resolved] top bar float right mobile device

Home Forums Support top bar float right mobile device

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #383345
    Katharina

    Hi there,

    i am using de WPmobile detect plugin.
    I added this to an top bar html widget:

    [notphone] office@energieeffizienz.tirol      +43 (0)5253 6310[/notphone]

    [phone]    [/phone]

    an want to show the icons on the right side on the mobile device, but they are centered.

    i tried this css:

    .icon{
    float:right;
    }
    and this one:


    @media
    (max-width:768px).top-bar {
    float:right;
    padding: 0 2px 0 0;

    }

    but it does’nt work. Can you help 🙂
    here the URL: http://www.energieeffizienz.tirol?bypass=optimal

    Thank you
    Katharina

    #383409
    Leo
    Staff
    Customer Support

    Hi there,

    The plugin shouldn’t be needed.

    Check out this method: https://docs.generatepress.com/article/responsive-display/#using-our-hide-on-classes

    Let me know if you need more info.

    #383660
    Katharina

    Hi Leo,

    thank you, this method works fine, i’m glad that i don’t need the plugin anymore.
    The top-bar layout is full-width / contained / align:right. On desktop it is aligned right, but
    still the icons are in the center of the mobile, i cannot find out the right css to set them on the right side. On the desktop
    I gave them the class “icon”:

    and tried:

    .icon {
    text-align: right;
    }

    or
    .icon {
    float:right;
    }

    i tried with no padding, no margin – nothing works.

    I also tried


    @media
    (max-width: 768px) .top-bar {
    text-align:right;
    }

    and


    @media
    (max-width: 768px) .top-bar {
    float:right;
    }

    Nothing works.
    Can you give me a hint?

    thank you
    Katharina

    #383929
    Leo
    Staff
    Customer Support
    #384431
    Katharina

    I am using the mobile header, the mobile menu works fine! I am talking about issues with the top bar.
    I want the two icons on the right side, not in the center ob the mobile.

    thank you
    Katharina

    #384653
    Leo
    Staff
    Customer Support

    Ahh I see.

    Try this CSS:

    @media (max-width: 768px) {
        .inside-top-bar {
            padding-right: 0;
            text-align: right;
        }
    }

    Let me know.

    #385103
    Katharina

    perfect!

    Thank you
    Katharina

    #385577
    Leo
    Staff
    Customer Support

    No problem!

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