How to wrap text using CSS? [duplicate]


Tags: css,textwrapping

Problem :

This question already has an answer here:

<td>gdfggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg</td>

How do I get text like this to wrap in CSS?



Solution :

Try doing this. Works for IE8, FF3.6, Chrome

<BODY>
  <TABLE>
  <TR>
    <TD><div style="word-wrap: break-word; width: 100px" > gdfggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg</div></TD>
  </TR>
  </TABLE>
 </BODY>

    CSS Howto..

    show different content in multiple css popups

    How can I make a border wrap around a group of pictures?

    CSS: how to position element in lower right?

    How do I create a border for an image?

    CSS: overlay looks fine on Chrome, but not in Firefox 3: how do I fix the vertical offset?

    AngularDart - How to style Component with global CSS in Google Chrome 35m (applyAuthorStyles is deprecated)

    How to edit css selectors to test something in Firebug?

    How to don't effect elements inside an filter-affected element?

    how to add class to razor form and give padding?

    CSS how to vertically align text within a pseudo element

    How To Vertically Align Text On A Squarespace Button?

    how do I select in css so the items appears in hover state In entire page(mega menu)

    How can I fix my CSS/HTML that uses input:checked, to prevent radio button movement?

    How to ask browsers to refresh (flush) the cache of my website?

    How to add JS and CSS to all content parts in an Orchard module

    How to overlap auto-scaling images with an auto-scaling background

    CSS Specificity - How does “it” decide which styles to apply?

    How do I style jQuery UI tabs vertically with a correctly themed border?

    How to avoid text go below the thumbnail with css

    How can i get List items to stay together using CSS?

    How can I make editable fields with button?

    How to maneuver between two divs using CSS?

    “Pull center” in Bootstrap: A -D- B -E- C columns collapsing to A-B-C // D-E, how to get B between D and E?

    How to include a static page with custom css and js files in a Rails application

    How to make an entire div clickable with CSS [closed]

    Show and remove “No Record Found” message in jqgrid 4.6.0

    How to test css with media queries

    How to resize a chosen jquery dropdownlist on windows resize

    How to make an element with fixed position relative to its parent, not the whole screen?

    Foundation 5-How to center position the class 'row' regardless the browser size?