![]() |
|
#1
|
|||
|
|||
wordwrap in texthi,
i got problem in wordwrap tetxarea this textarea fetching from database PHP Code:
Code:
PHP Code:
whast the diff. between px and % i want something like example2 in the link www.php.net is some width i have to change in below width of cols <tr bgcolor="#cccccc"> <th nowrap>Datum</th> <th nowrap>Von</th> <th nowrap>Bis</th> <th nowrap>Kunde</th> <th nowrap>Projekt</th> <th nowrap>H-Vorgang</th> <th nowrap>U-Vorgang</th> <th nowrap>Text</th> <th nowrap>IST</th> <th nowrap>Soll</th> <th nowrap>Status</th> <th nowrap> </th> </tr> thanks for understanding |
|||
|
#2
|
||||
|
||||
|
OK, ignoring your code, I quickly wrote a sample PHP page that I think, will help you figure out your issue with wordwrap and a fixed (sized) textarea. If my assumption is wrong please let me know.
Copy and save the following php 'script' to, let's say test.php: PHP Code:
The difference between % and pixels (px) values are % will take the size (width or height) off the containing element. In other words, if the available screen width is 500px, an attribute width="100%" will make that element have a width of 500px, (which is 100% off 500px).. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
|||
|
|||
|
thanks alot !well for form based \n wont works
$text = 'Aaaaaaaaaaaaargh! The quick brown fox jumped over the lazy dogs... again!'; $text = wordwrap( $text, 9, "<br />", 1 ); echo $text; this works perfectly thanks |
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CD Burner Help - Power Calibration Error.... | JonBoy420 | Computer Hardware Forum | 111 | 19-Feb-2009 04:54 |
| Manipulating text Files | k209310 | C++ Forum | 0 | 17-Nov-2003 11:23 |
| CD Buring Failed | skanth2000 | Computer Hardware Forum | 1 | 15-Nov-2003 04:52 |
| text field problm | zuzupus | Web Design Forum | 3 | 04-Sep-2003 06:18 |
| Scrolling Text Ads - Free advertising on other peoples sites | jrobbio | Advertising & Affiliates Forum | 0 | 19-Feb-2003 01:00 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The