Archived topic
Table not showing properly in mobile
1 reply · Started by Den on February 9, 2021
Hello team,
In my generatepress theme, I have added a CSS for table width
table {
width: 66%;
border-collapse: collapse;
border: 0px solid white;
}
But because of this CSS, the table in my mobile device isn't showing properly. How do I run this CSS only for computer device? I don't want that CSS to be run in mobile devices.
Hi there,
you wrap your CSS in a @media query for desktop only.
This article explains:
https://docs.generatepress.com/article/responsive-display/#responsive-breakpoints