Set the container’s style to this: overflow-x: auto white-space: nowrap This should prevent text in columns (all columns) of breaking to a new line and add a scroll bar at the bottom of the div if the table don’t fit the screen. How do I stop table cells from wrapping text? Use the entity for the non-breaking space character, when you want to make sure that a line isn’t broken! Alternatively, use the NOWRAP attribute to disable word wrapping and the element to force line breaks where desired. Which tag is used to turn off the word wrapping?
0 Comments
Leave a Reply. |