Jump to content
Robert Moskowitz

Italics within a textarea

Recommended Posts

I want to italicize on word in a textarea.  Something like:

  .copy-area {
    margin-bottom: 2em;
  .copy-area textarea {
  	border:1px solid black;
	font-family: verdana,tahoma,'Bitstream Vera Sans','DejaVu Sans',arial,helvetica,sans-serif;

<div class="copy-area">
<textarea id="box44"

The italics tag worked fine in the old way I did things, but not surprisingly it does not work in my proper CSS style.

So how do I change just a part of my text's font to italics?

And, yes, this is the 44th textarea in this one howto and still more to convert.


Share this post

Link to post
Share on other sites

I think you will find it can only done as you already trìed or using similar  formatting code as bbcode, which used here when posting topics [ i ]italics[/ i ] [ b ]Bold[/ b ] (without spaces)

Share this post

Link to post
Share on other sites

The square brackets, fqdn does not work in the textarea.

It would be nice, but I think the key here is that the is a textarea tag and all text is treated, well as text!

Possibly some javascripting could stuff some replacement content into the textarea.


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...