| | |
Controlling the max text length
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Feb 2007
Posts: 72
Reputation:
Solved Threads: 0
Hello, I am trying to control the max length that the text appears, before it goes to the next line in a div. So I want the div to be say 100, but I want the text to only reach 50 before it wraps to the next line. Is there a way I can do this?
My Website <-- check out my site!
•
•
Join Date: Feb 2008
Posts: 6
Reputation:
Solved Threads: 1
It's possible using JavaScript. Use the slice() function to do it. More on slice() function at
http://www.w3schools.com/jsref/jsref_slice_string.asp
http://www.w3schools.com/jsref/jsref_slice_string.asp
![]() |
Similar Threads
- Threads and MediaPlayer component problem (Pascal and Delphi)
Other Threads in the HTML and CSS Forum
- Previous Thread: newbie needs code help for form
- Next Thread: IFrame
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7





