Title: Display table based on screen width
Last modified: November 22, 2020

---

# Display table based on screen width

 *  Resolved [Joe Dunn](https://wordpress.org/support/users/joe-dunn/)
 * (@joe-dunn)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/display-table-based-on-screen-width/)
 * Hello,
 * I am using Elementor Pro and NinjaTables Pro.
 * I need to detect the user’s screen width and then display the table shortcode.
   For example:
 * If the user’s screen width is less than X then use this shortcode:
 * [ninja_tables id=”123″]
 * If the user’s screen width is greater than X then display this shortcode:
 * [ninja_tables id=”456″]
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Support [Syed Numan](https://wordpress.org/support/users/annuman/)
 * (@annuman)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/display-table-based-on-screen-width/#post-14109463)
 * Hello [@joe-dunn](https://wordpress.org/support/users/joe-dunn/),
 * Our sincerest apology for being delayed to respond. We always recommend opening
   a support ticket to get a fast reply.
 * Actually, Ninja Table is a shortcode based table plugin so by default, there 
   is no possibility to display different tables in a certain container. But if 
   you can conditionally detect the user’s screen width and embed the table shortcode
   within the condition then it will definitely work.
 * You should open a support ticket with the admin credential of the site here. 
   [https://wpmanageninja.com/support-tickets/](https://wpmanageninja.com/support-tickets/)
   Our support agents will assist you as soon as possible.
 * Thanks

Viewing 1 replies (of 1 total)

The topic ‘Display table based on screen width’ is closed to new replies.

 * ![](https://ps.w.org/ninja-tables/assets/icon-256x256.png?rev=3337819)
 * [Ninja Tables – Easy Data Table Builder](https://wordpress.org/plugins/ninja-tables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninja-tables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninja-tables/)
 * [Active Topics](https://wordpress.org/support/plugin/ninja-tables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninja-tables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninja-tables/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Syed Numan](https://wordpress.org/support/users/annuman/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/display-table-based-on-screen-width/#post-14109463)
 * Status: resolved