HomePHP, HTML, CSS ScriptsTutorialsRequest HelpAbout UsContact Us
Cambridge, Peterborough Web Design
Stay informed - Newsletter Signup
 Script CSS Forcing Words to Wrap

Dated Added: 11th October 2007

CSS is great isn't it? This little snippet helps you force that unruly text to wrap using a div
<table width="300" border="0">
<tr>
<td width="300">

<div style="word-wrap: break-word;">

<p>This is really long text that needs to be brought under control at once</p>
<p>Once it reaches the 100pixels set it will then start to wrap underneath itself</p>
<p>This small piece will not wrap ofcourse</p>

</div>

</td>
</tr>
</table>

This is really long text that needs to be brought under control at once

Once it reaches the 100pixels set it will then start to wrap underneath itself

This small piece will not wrap ofcourse

Script Updates
Ajax
ASP
ASP.NET
CSS
HTML
Java
Javascript
PHP
Python
Ruby on Rails
Useful Tools
XML
Request Help
Request a Script
Request WebDev
Contact Us
About Us


Ajax Scripts | ASP Scripts | ASP.NET Scripts | HTML Scripts | Javascript Scripts | PHP Scripts | Python Scripts | Ruby on Rails Scripts | XML Scripts
2001-2007 © All Rights Reserved. 3Branch Internet Development. All content is available under the GPL