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?
adaykin
0
Junior Poster in Training
Recommended Answers
Jump to PostIt'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
All 3 Replies
gpm1982
2
Newbie Poster
adaykin
commented:
He helped solve a thread of mine
+2
adaykin
0
Junior Poster in Training
macneato
29
Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.