MyBB Community Forums

Full Version: Mobile Not Showing All MyTabs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I have incorporated a new theme into my forum. On the web browser, I see all my tabs. However, on Mobile, the max amount of tabs that it will show is two. I would imagine it has something to do with the mobile width. I will attach screenshots.

Any help would be appreciated.

Thank you,
Sean

[attachment=42595][attachment=42594]
Hello,
yes, there is a CSS declaration for the 3rd child and up of the parent element of those tabs to have the display: none property, as you can see here. I believe you could just delete those declarations from css3.css, and that issue should be fixed. (Make sure to also delete the ones for smaller screen widths, or not, depends on your preference.) It might cause some problems, though.
(2020-02-20, 10:38 PM)mTurtle_ Wrote: [ -> ]Hello,
yes, there is a CSS declaration for the 3rd child and up of the parent element of those tabs to have the display: none property, as you can see here. I believe you could just delete those declarations from css3.css, and that issue should be fixed. (Make sure to also delete the ones for smaller screen widths, or not, depends on your preference.) It might cause some problems, though.

What do you mean by delete the ones for smaller screen widths? Do I remove that whole section but with other sizes? I’m a little confused.
No problem Smile Here's how you would do it - change

@media only screen and (max-width: 768px) {
    tr td:nth-child(3)        { display:none; visibility:hidden; }
    tr td:nth-child(4)        { display:none; visibility:hidden; }
    tr td:nth-child(5)        { display:none; visibility:hidden; }
    tr td:nth-child(6)        { display:none; visibility:hidden; }
    tr td:nth-child(7)        { display:none; visibility:hidden; }
    tr td:nth-child(8)        { display:none; visibility:hidden; }
    .tmob_hide tr td:nth-child(1)        { display:none; visibility:hidden; }
    .trow_sep {    font-size: 10px;}
     img {max-width:100%}
}
to

@media only screen and (max-width: 768px) {
    .tmob_hide tr td:nth-child(1)        { display:none; visibility:hidden; }
    .trow_sep {    font-size: 10px;}
     img {max-width:100%}
}
and do the same for the other sizes, if you wish - @media only screen and (max-width: 420px), and @media only screen and (max-width: 320px). These do the same as the first one, but for smaller screen sizes. So, for example, if you only choose to edit the first one, only screens 768 pixels in width and above will be affected. The same goes for the second one - if you choose to edit that one, then only screens above 420 pixels in width will be affected, etc.

Sorry if I'm not being too clear, it's been a long day Big Grin
(2020-02-20, 11:27 PM)mTurtle_ Wrote: [ -> ]No problem Smile Here's how you would do it - change

@media only screen and (max-width: 768px) {
    tr td:nth-child(3)        { display:none; visibility:hidden; }
    tr td:nth-child(4)        { display:none; visibility:hidden; }
    tr td:nth-child(5)        { display:none; visibility:hidden; }
    tr td:nth-child(6)        { display:none; visibility:hidden; }
    tr td:nth-child(7)        { display:none; visibility:hidden; }
    tr td:nth-child(8)        { display:none; visibility:hidden; }
    .tmob_hide tr td:nth-child(1)        { display:none; visibility:hidden; }
    .trow_sep {    font-size: 10px;}
     img {max-width:100%}
}
to

@media only screen and (max-width: 768px) {
    .tmob_hide tr td:nth-child(1)        { display:none; visibility:hidden; }
    .trow_sep {    font-size: 10px;}
     img {max-width:100%}
}
and do the same for the other sizes, if you wish - @media only screen and (max-width: 420px), and @media only screen and (max-width: 320px). These do the same as the first one, but for smaller screen sizes. So, for example, if you only choose to edit the first one, only screens 768 pixels in width and above will be affected. The same goes for the second one - if you choose to edit that one, then only screens above 420 pixels in width will be affected, etc.

Sorry if I'm not being too clear, it's been a long day Big Grin

No, thank you for that, I appreciate it. However, I have too many tabs, so I can't see all of them on one page. Is there a way to put them in list format?