Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make a textarea more better looking?

Status
Not open for further replies.
Oct 11, 2006
300
US
Hi,

I would like to add a nice style to textare:

Code:
<textarea rows=5 cols=30 readonly style="border:15px">

How can I change the following for the textarea?

Border width
Border Color
Font style within the textarea
color of the scroll bars within the textarea

Thanks.
 
border width you can change with css attribute [tt]border-width[/tt].
border color you can change with css attribute [tt]border-color[/tt].
font-style you can change with a number of font attributes or simply the font shorthand in css.
color of the scrollbars in the textarea you cannot change. Those depend on the OS. You might be able to color them in IE using IE proprietary scrollbar css attributes.

All the above attributes you will find explained on a page such as W3 Schools and for the last one simply google for IE scrollbar styling.
 
Now if I were to style the scroll bars for IE browsers, then what would it look like in non-IE browsers? Would it be rendered as the grey color scroll bars?

Thanks.
 
The scrollbars would look the same as any system scrollbars. Whatever those look on whatever system the browser is running.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top