How can I restrict the table <td> entry to expanding over the entire screen when
the entry is too long?
How can I restrict the table <td> entry to expanding over the entire screen
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, there’s
max-width,max-height, andoverflowin CSS.So
would restrict the maximum width and height to 150px, and it can be anything from less than 150 up to 150, and anything that doesn’t fit inside that will be clipped off and hidden from view.
Overflow’s default (
overflow: visible;) is to simply allow anything that won’t fit inside its specified container to just spill over outside of it. If you only want to limit it horizontally and don’t want to hide anything,word-wrapmay help:word-wrapwill break words whenever it needs to, even if it’s not at the end of a word. You can also just useheightandwidthto specify a fixed size if you don’t want the table to expand or shrink at all.