*

jasongeek

  • ***
  • 61 posts
Category Modules on the Phone
« on: April 17, 2022, 05:27:24 PM »
The category modules--when viewed on the phone--display in a column of two. However, since the modules are small than the ad modules, the modules are aligned left in two columns.

Is there a way to make the modules smaller so that they appear in a three-column module that fills a phone screen
OR
Is there a way to force text categories on just phones with the "@media" css code or something in the responsive css file?


See my attached screenshot.

*

atba

  • ****
  • 193 posts
Re: Category Modules on the Phone
« Reply #1 on: April 17, 2022, 06:36:47 PM »
correct the responsive.css. It's easy) Look at the desired line in the inspector of any modern browser
« Last Edit: April 17, 2022, 06:38:24 PM by atba »
osclass.by

*

MB Themes

Re: Category Modules on the Phone
« Reply #2 on: April 21, 2022, 01:19:44 PM »
@jasongeek
In this case width of boxes are static. You can try something like this:
Code: [Select]
@media screen and (max-width: 767px) {
#home-cats a {
    width: calc(33.33% - 10px);
    margin: 0 5px 10px 5px;
}
}
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

jasongeek

  • ***
  • 61 posts
Re: Category Modules on the Phone
« Reply #3 on: April 21, 2022, 04:13:13 PM »
Thank you. I'll add this to the css.

*

MB Themes

Re: Category Modules on the Phone
« Reply #4 on: April 21, 2022, 06:34:59 PM »
No, let us know about results
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

jasongeek

  • ***
  • 61 posts
Re: Category Modules on the Phone
« Reply #5 on: April 24, 2022, 05:32:25 PM »
That works perfectly. The 33.33% works just right. It makes three columns now.
« Last Edit: April 24, 2022, 05:49:19 PM by jasongeek »

*

jasongeek

  • ***
  • 61 posts
Re: Category Modules on the Phone
« Reply #6 on: April 24, 2022, 06:07:10 PM »
Would it also be possible (as an option) to make the category blocks:

1. a single column of rectangles
2. and just large text with no image

*

MB Themes

Re: Category Modules on the Phone
« Reply #7 on: April 25, 2022, 08:17:28 AM »
Try this:
Code: [Select]
#home-cats .wrap { display: flex; flex-direction: row; flex-wrap: nowrap; width: 100%; overflow-x: auto; }
#home-cats a {min-width:100px;}
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots