Need to fix the column size.


I have some content which is retrieved from the database and is populated in a column. But when the data is being populated the column increases horizontally which causes the user to scroll horizontally. Is there a way in HTML so that i could get the content in the column into a new line. I have fixed the length of the column but that does not seem to work. Thanks for your suggestions.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

do you mean you have fixed the *width* of your column?
Try fixing the width of your table too. If it is set to 100% or lower then you should have no horizontal scrolling.
I'm assuming you are using an html table (for your columns) as opposed to an gridview - either way set the width of the table/div/gridview to 100% or lower.
You can use
<tr><td style="WORD-BREAK:BREAK-ALL"></td></tr>
The style WORD-BREAK:BREAK-ALL so that the horizontal scroll bar wont come.

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.