Jump to content

help with fonts in textareas


jibo
 Share

Recommended Posts

hi, i have a simple textareat i want to use to display my updates in the code im using is <textarea ROWS=5 COLS=15 style="border style:solid" font>UPDATES!updates displayed in ere!!!!!!!</textarea>im ok as far as that.... the problem i have is i want the word 'updates' underlined and centered at da top of the box can anyone help me?? im kinda lost as ive never reli used textareas lol. thanks

Link to comment
Share on other sites

All of the text in a textarea contains the same formatting. You would have to use an iframe or a scrolling div if you want to do something like that, but those cannot be typed in. If you want to type in it, it all takes one format.

Link to comment
Share on other sites

You'll want ot put it outside the text area...it will save many headaches.something like this maybe?\

<div style="text-align:center">  <span style="text-decoration:underline">Updates</span><br/>  <textarea......>updates here</textarea></div>

Link to comment
Share on other sites

Or just don't use a textarea lol :)You can enheight and enwidth a div and force it to show scrollbars if the content overflows it :) Would be the same as a textarea, but without the possibility to edit the content, hence much safer :)

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
 Share

×
×
  • Create New...