[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1866
  • Last Modified:

Need to fix the column size.

Hi

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.

Manoj
0
manojpotla
Asked:
manojpotla
1 Solution
 
QPRCommented:
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 asp.net gridview - either way set the width of the table/div/gridview to 100% or lower.
0
 
cneelusCommented:
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.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now