[Support request] Table not showing properly in mobile

Home Forums Support [Support request] Table not showing properly in mobile

Home Forums Support Table not showing properly in mobile

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1651246
    Den

    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.

    #1651396
    David
    Staff
    Customer Support

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.