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

Does not work as expected when nested in a table #33

Open
brianmhunt opened this issue Nov 6, 2013 · 3 comments
Open

Does not work as expected when nested in a table #33

brianmhunt opened this issue Nov 6, 2013 · 3 comments

Comments

@brianmhunt
Copy link

When the textarea is in a fixed-width table, it does not work as expected. Here is an example:

http://jsfiddle.net/bmh_ca/4QcaR/

@brianmhunt
Copy link
Author

One solution is to apply width: 100% to the <td> that the <textarea> is found in.

@brianmhunt
Copy link
Author

Another solution is the application of the following CSS, per this discussion on StackOverflow

td {
    max-width: 0px;
}

However one must note that this is based upon a seemingly undefined behaviour.

A preferable alternative would probably be:

table {
   table-layout: fixed;
}

@bgrins
Copy link
Owner

bgrins commented Dec 7, 2013

Wow, that is strange behavior. I think your research on this would be good to add to the documentation, since everyone's ideal solution will probably differ based on their situation.

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

2 participants