Wrapping for Tables, Forms and Text

 

div align="justify"
div align="left"
div align="center"
div align="right"





Wrapping for Tables, Forms and Text

There are ways to customize how your text will "float" or "wrap" within certain type of display elements.
Here are examples for tables, textareas and plain text displays:

Tables: Within the table cell tag, you can specify whether a cell should wrap to fit the proportions of your table. If you want to disable this, to ensure your text flows on one line, add this to the parameter to the cell tag: <td nowrap>
Of course, you always have the option to align with the cell tag:
<td align="left"> etc.

Textareas: These are display boxes, which can be used to either collect or display information from or to a user. If you are displaying text inside a text area, you have a couple of options:
1. <textarea wrap="virtual">Your text will wrap</textarea>
2. <textarea wrap="off">Your text will not wrap</textarea>
Note: Line breaks or carriage returns are recognized by the textarea tag.
So if you want to create some line breaks inside textareas, just do so as if you were using a regular text editor.

Text: You can alter the alignment of text by adding a simple parameter to a div tag surrounding your text.


Free JavaScripts provided
by Winfolinx.com

Back