Announcement

Collapse
No announcement yet.

Template Too Wide for Mobile - Horizontal Overflow

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Template Too Wide for Mobile - Horizontal Overflow

    Is there a trick for finding the cause of a template's horizontal scroll bar on mobile devices?

    For example in 360 x 640 resolution:

    Click image for larger version  Name:	overflow.jpg Views:	1 Size:	22.7 KB ID:	3943


    Any help would be appreciated!

    Thanks,
    William

    #2
    That is a tricky issue to find. You literally have to navigate through the HTML DOM tree in the element inspector tool to find which element is causing it.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      I think I found it. You have this in css_additional:
      Code:
      #channel-tabbar {
          background: none!important;
          margin-left: 55px;
      }
      I think you only wanted that left margin (and that background:none) on desktop but not on mobile. If so, then:
      Code:
      [COLOR=#FF0000].l-desktop [/COLOR]#channel-tabbar {
          background: none!important;
          margin-left: 55px;
      }
      Last edited by glennrocksvb; 04-14-2017, 02:50 PM.
      Helpful? Donate. Thanks!
      Buy me a coffeePayPal QR Code
      Fast VPS Host for vBulletin:
      A2 Hosting & IONOS

      Comment


        #4
        I found two css additions that were causing the overflow. I ended up blanking out my additional_css and just adding parts of the custom code back until I narrowed down where the overflow was coming from. I guess you could say I used a process of elimination

        For example, when I added lines 1-250 back the overflow was there. It didn't take many seconds before I saw the first line causing the overflow.

        I didn't know if there was an easier way to find these issues in the future.

        Thank you Glenn,
        William

        Comment


          #5
          You're welcome. And thanks as always.

          Btw, you don't want the blue background on the nav bar with the 3 horizontal bar or hamburger icon on mobile? That icon is not noticeable with the gray background behind it.
          Helpful? Donate. Thanks!
          Buy me a coffeePayPal QR Code
          Fast VPS Host for vBulletin:
          A2 Hosting & IONOS

          Comment

          Users Viewing This Page

          Collapse

          There is 1 user viewing this forum topic.

          • Guest Guest

          Latest Posts

          Collapse

          Working...
          X
          Searching...Please wait.
          An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

          Please push the back button and reload the previous window.'
          An unexpected error was returned: 'Your submission could not be processed because the token has expired.

          Please push the back button and reload the previous window.'
          An internal error has occurred and the module cannot be displayed.
          There are no results that meet this criteria.
          Search Result for "|||"