Zaghloul Posted January 22, 2007 Share Posted January 22, 2007 hey all, Quick question, been trying for awhile with no luck. Is it possible to have different css properties for a textarea. An example would be having one word in bold and another in the color red, in the same textarea. I've tried numerous different methods with no luck. Normally this could be solved with having "<p>", however because this is in a textarea it simply shows "<p>" and doesn't except it as actual coding. Any help in this matter would be greatly appriated.Thank you in advance,Zaghloul Link to comment Share on other sites More sharing options...
vchris Posted January 22, 2007 Share Posted January 22, 2007 use iframes instead. Link to comment Share on other sites More sharing options...
Zaghloul Posted January 22, 2007 Author Share Posted January 22, 2007 hey, thanks for your reply. Can you go into a little further detail. I'm talking about a textarea, which you can edit. How can a Iframe help with that? Thanks again,Zagloul Link to comment Share on other sites More sharing options...
vchris Posted January 22, 2007 Share Posted January 22, 2007 Check this out: http://www.w3schools.com/tags/tag_iframe.aspIf you're using your textarea in a form then you shouldn't use an iframe since the info contained in it will not be submitted. You can do anything you want in an iframe (<P>, <br>, <a>...). Link to comment Share on other sites More sharing options...
Zaghloul Posted January 22, 2007 Author Share Posted January 22, 2007 Thanks for your patients, i tried using the iframe, and the textarea being a child. However the same problem occurs. Example: "<b>test<b>" displays as "<b>test</b>" and not "test", within the textarea...thanks again,Zaghloul Link to comment Share on other sites More sharing options...
vchris Posted January 22, 2007 Share Posted January 22, 2007 You won't be able to do <b>best</b> in a text area no matter what. You can do it in an iframe but not in a text area in an iframe, it's still in a text area. Link to comment Share on other sites More sharing options...
Zaghloul Posted January 22, 2007 Author Share Posted January 22, 2007 ok, thanks alot vchris.take care,Zaghloul Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now