Skip to content
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

Is there a way to get the table td's to stretch to fit the content? #12

Open
jmchauv opened this issue Sep 5, 2014 · 1 comment
Open

Comments

@jmchauv
Copy link

jmchauv commented Sep 5, 2014

I would like my table tds to stretch to fit whatever the length of the content is, instead of clipping the content. I would like my th's to match the td width so that everything is lined up correctly. Is this possible?

In my situation, my table would most likely exceed the width of the parent div I have it within. I would set that parent div to overflow:auto, so that the user would have to scroll right in order to see more of the table.

Thanks guys.

@jmchauv
Copy link
Author

jmchauv commented Sep 5, 2014

It seems like the biggest issue would be getting the th to line up correctly with the td's, while also scrolling right with the td's at the same time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant