The easiest way to do this would be to paste the table in a section created by some page builder.
For example, you can split the content on the page using a page builder, and paste the shortcode of the table in a pre-defined section created by that page builder. That way, you can change the width of the table and move it to where ever you want it to be, and also avoid custom CSS code that would definitely be required for this task if you wanted to display the table in this way without any page builder plugins.
I would like not to use any page builder and do this using CSS. I was looking but I did not found any good method (and safe). Can you show the proper CSS code? I found some other solutions in your answers for other problems? I think that it should be a standard property in the plugin: width and position (maybe).
This will be affected on all tables (including back-end), but if you want to apply this just for a specific table, then insert this code on the page where that table is, between the style tags (<style>Code here</style>):
How to create a narrow table? E.g. the table occupying only 30% of the page width and placed in the right half of the page?
Hello xwonorb.
Thank you for your purchase.
The easiest way to do this would be to paste the table in a section created by some page builder.
For example, you can split the content on the page using a page builder, and paste the shortcode of the table in a pre-defined section created by that page builder. That way, you can change the width of the table and move it to where ever you want it to be, and also avoid custom CSS code that would definitely be required for this task if you wanted to display the table in this way without any page builder plugins.
Best regards.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Thanks Alexander,
I would like not to use any page builder and do this using CSS. I was looking but I did not found any good method (and safe). Can you show the proper CSS code? I found some other solutions in your answers for other problems? I think that it should be a standard property in the plugin: width and position (maybe).
Thanks and best regards
Hello xwonorb.
Sure, this can be done with CSS.
You can use the following code:
This will be affected on all tables (including back-end), but if you want to apply this just for a specific table, then insert this code on the page where that table is, between the style tags (<style>Code here</style>):
Just a heads-up - if you're using WordPress 5, you need to add a classic block:
And edit it as HTML:
Write the code after you click on "Edit as HTML".
And that sets the table width to 30%, and pushes it to the right.
Please let me know if this helps.
Best regards.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Thanks Aleksandar,
I was out for some days.
Yes, it works. Now I am using a serialized PHP array and are controlling other CSS parameters the same way as you wrote me.
Best regards
Great news, xwonorb.
Thanks for letting me know.
If you have any more issues or questions feel free to open a new ticket, we will gladly help.
We'd greatly appreciate it if you could take a minute and leave a Review on CodeCanyon on this link. Thanks!
Best regards.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables