Thomas J.S.: Farbige Umrandungen einer Textarea in Netscape

Beitrag lesen

Hallo!

Ich muss eine Page porgrammieren, in der eine Textarea einen
orangen Randhaben muss (Das gleiche bei einzeiligen Textfeldern
und bei Checkboxen.)

<html>
<head>
<title>Test 4</title>
<style type="text/css">
.tarea {
width:10;
padding:2px;
background:#ff8c00;
layer-background-color:#ff8c00;
border:none;
}
</style>
</head>
<body>

<form>
<table cellpadding="3">
<tr>
<td bgcolor="#ff8c00"><textarea rows="10" cols="50"></textarea></td>
</tr>
<tr><td bgcolor="#ff8c00"><input type="text" size="30"></td>
</tr>
</table>
</form>

<form>
<table>
<tr>
<td><div class="tarea"><textarea rows="10" cols="50"></textarea></div></td>
</tr>
<tr><td><div class="tarea"><input type="text" size="30"></div></td></tr>
</table>
</form>
</body>
</html>

das width:10; im CSS brauchst für den IE, sonst macht er das div 100% breit.

Grüße
Thomas