Skip to main content

Setting Table Widths

Keywords: width, widths, table, tables, change, setting, how

Leanpub Support avatar
Written by Leanpub Support
Updated this week
Setting Table Widths

You can set table widths using the {width: %} directive on the line above the table.

Please note there is currently no global setting for tables widths in the Custom book Theme, where you can toggle a setting to make all tables the same custom width.

So, you can say, for example {width: "25%"}, {width: 50%}, {width: "100%"}, etc.

Here's an example of a table set to be 100% of the page width (within the margins):

{width: 100%}
| Header 1 | Header 2 |
| --- | --- |
| Content 1 | Content 2 |
| Content 3 | Content 4 Can be Different Length |

Related Article: Creating Tables in Markua

Questions or Feedback

If you have any questions or feedback for this article, please email the Leanpub Team at hello@leanpub.com.


Subscribe to our YouTube channel! Growing our audience there really helps Leanpub authors like you get discovered! Plus you'll learn about other authors, and their experiences writing and publishing.

If you have any feedback or questions about this article, please email the Leanpub team about it at hello@leanpub.com!

If you have any questions or thoughts on writing and self-publishing with Leanpub, please join our global community of authors in our Authors Forum here!

Are you interested in self-publishing, and creating your first Leanpub book? Here are some quick tutorials for our most popular writing modes: http://help.leanpub.com/en/articles/3088382-quick-walkthroughs-for-getting-started-on-a-leanpub-book

Are you looking for great deals on Leanpub ebooks, ebook bundles, and courses? Sign up for our Weekly and Monthly newsletter sales here!

You can also follow Leanpub in lots of other places!

Did this answer your question?