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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Border Style for TextArea?

Status
Not open for further replies.

fixthebug2003

Programmer
Oct 20, 2003
294
US
Hi,
Is there a way yo control the borderStyle for a TextArea element?

Fixthebug2003
 
You can control border style by using the style attributes here is an example

<TEXTAREA style='color: darkblue;
background-color: white;
font: bold 10pt verdana;
border: 2px solid #808080;
word-wrap : break-word;
width : 250px;
height : 100px;
overflow: visible;' ></TEXTAREA>
 
Aahhh..! I am sorry I asked the question for the wrong element.
I wanted to control the border style for a <SELECT> tag ....not textArea!

is there a way..b'cos I tried it the same way as you mentioned for TextArea..but the border style doesn't seem to change?

Fixthebug2003
 
The <Select> tag does not support the border style attribute. You maybe able to surround the <select> tag with a table structure and use the border style attribute on the <tr> or <td> tags however the border will still be around the select tag.

 

>> The <Select> tag does not support the border style attribute.

That's not technicaly correct, IMHO. It is a browser dependant feature, I believe. While your statement might hold true for IE on windows, some other browsers certainly let you control the borders on select boxes perfectly well.

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top