is there any way to do multiple styles on one textarea simultaneously...
okay,,what i actually want is a textarea with 50% and 100% fontsize on textarea,,for the first 100 words,,the font size is 50percent and for the rest it is 100 percent,,,
Is it possible to code in javascript or even css??
No, with CSS the last identical style will be applied, so if you define font-size twice in the same CSS, the last one wins. Not saying you couldn't do it with some javascript magic, but you'd be better off using 2 spans instead and set 2 different sizes
that way.
"Sometimes, it is more important to have the right problem than the best solution."
You can do it with TinyMCE, which is a JavaScript enhanced textbox with an API that allows you to change formatting of the text/markup. http://www.tinymce.com/
Mohit Mahesh...
0 Points
11 Posts
multiple styles on one textarea simultaneously
Jan 08, 2012 07:59 PM|LINK
hello people,,
is there any way to do multiple styles on one textarea simultaneously...
okay,,what i actually want is a textarea with 50% and 100% fontsize on textarea,,for the first 100 words,,the font size is 50percent and for the rest it is 100 percent,,,
Is it possible to code in javascript or even css??
textarea css javascript
tehremo
Star
10540 Points
1704 Posts
Re: multiple styles on one textarea simultaneously
Jan 09, 2012 12:52 AM|LINK
No, with CSS the last identical style will be applied, so if you define font-size twice in the same CSS, the last one wins. Not saying you couldn't do it with some javascript magic, but you'd be better off using 2 spans instead and set 2 different sizes that way.
madskristens...
Member
108 Points
14 Posts
Re: multiple styles on one textarea simultaneously
Mar 18, 2012 03:51 PM|LINK
You can do it with TinyMCE, which is a JavaScript enhanced textbox with an API that allows you to change formatting of the text/markup. http://www.tinymce.com/