Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1277020
    cmdev
    Participant

    Please view the page below on Mobile.

    The code that you had sent me to style the tabs seems to be preventing the tabs from working correctly on mobile.
    they currently are only appearing at half of the mobile browser. How do you correct this?

    http://beta.triflight.com/passenger-guide/

    #1277022
    Rupok
    Member

    Hi there,

    Would you clarify which code you are referring? Can you point the thread? Also let us know how you want this on mobile.

    Cheers!

    #1277423
    cmdev
    Participant

    Here is my code that was provided for styling the tab width

    .x-nav-tabs.left, .x-nav-tabs.right {
    width: 35% !important;
    background-color: #FFFFFF;
    max-width: 500px !important;
    }

    What I want it do on mobile is attached.

    I’d like the tabs to expand down on mobile.

    #1277474
    Rupok
    Member

    Hi there,

    Thanks for writing back. You can add the code inside a media query so it won’t interfere with mobile view :

    @media only screen and (min-width: 768px) {
    .x-nav-tabs.left, .x-nav-tabs.right {
      width: 35% !important;
      background-color: #FFFFFF;
      max-width: 500px !important;
    }
    }

    Hope this helps.

    #1277554
    cmdev
    Participant

    Can that be added globally?

    #1277558
    cmdev
    Participant

    This did not seem to work.

    #1277605
    Rupok
    Member

    Hi there,

    Your code will be applied for dekstop only and won’t affect the mobile view. That’s exactly what the code will do. You need to replace your code with the code I have suggested. Let me know what’s exactly not working.

    Thanks!

    #1277656
    cmdev
    Participant

    I see.
    When i add your code the tabs still are only half-page on mobile screen. See attached.

    I need them to be full width of the container. See 2nd attached photo.

    #1278082
    Rad
    Moderator

    Hi there,

    Please add this as well,

    @media (max-width: 767px){
    .x-nav-tabs.left, .x-nav-tabs.right {
        width: 100% !important;
        max-width: 100% !important;
    }
    }

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1277020 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>