Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

5 column item listing is really bad in mobile how can i fix this?

I have a business directory here it is https://www.endustri.io/firma/

I am listing the categories in five columns. When i looked the mobile i was shocked. Really bad looking. How can fix this?
I want to see mobile version look like desktop, or better than this time.

Here is my css code

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

#native {
  
  width: 100%;
  height: min-content; /*your fixed height*/
  display: inline-block; /*necessary*/
    -webkit-column-count: 5;
       -moz-column-count: 5;
            column-count: 5;
  
  
}

This is desktop
enter image description here

And this is mobile
enter image description here

>Solution :

You could solve it by changing column-count on mobile devices to, for example, 2. You can target mobile devices with @media screen of specific range:

@media screen and (max-width: 767px) {
  #native {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
  }
}
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading