Wrap each table code inside a div – PHP WordPress

By: Prof. Dr. Fazal Rehman | Last updated: February 3, 2024

To automatically, wrap each table code inside a div we need to enter the following code inside functions.php file.

It can be useful for many purposes. For exmaple we can make a table responsive width by putting a table tag inside a dive and then assigning the following css to div;

overflow-x: auto !important;

 

All Copyrights Reserved 2025 Reserved by T4Tutorials