Jump to content

Italics within a textarea


Robert Moskowitz

Recommended Posts

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

<style>
  .copy-area {
    margin-bottom: 2em;
  }
  .copy-area textarea {
  	border:1px solid black;
    resize:none;
    font-size:inherit;
    padding-top:1em;
	margin-left:3em;
    width:20em;
    height:2em;
    overflow-y:hidden;
    overflow-x:auto;
	font-family: verdana,tahoma,'Bitstream Vera Sans','DejaVu Sans',arial,helvetica,sans-serif;
  }
</style>

<div class="copy-area">
<textarea id="box44"
	style="width:25em;height:2em;">
http://<i>fqdn</i>/roundcubemail/installer
</textarea>
</div>

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.

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...