-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
table-auto #7
Comments
table-layout auto is the default. The width of the table and its cells depends on the content inside. If you change this to fixed, the table and column widths are set by the widths of table and col elements or by the width of the first row of cells. |
Table LayoutUtilities for controlling the table layout algorithm. Quick reference
Quick reference |
Above is from tailwind |
width of the element to 100% or the maximum width required, we can make the table scrollable when the screen size or table wrapper becomes smaller than the table’s width, thus preventing the table from distorting the layout of the page:
<style>
.table-wrapper {
width: 100%;
/* max-width: 500px; */
overflow-x: auto;
}
|
Here’s an example of a data table with truncated cells: th, |
No description provided.
The text was updated successfully, but these errors were encountered: