Obtenir un effet flat sur une scrollbar
Bonjour à tous,
Comment obtenir un scrollbar avec un style flat (2D) dans textarea ?
Code:
1 2 3 4 5 6 7 8 9 10 11
| <form action="" method="post" name="search" id="styleform">
<fieldset>
<legend>Step 1 - Terms and Conditions of acceptation</legend>
<textarea name="conditions" cols="" rows="" class="inp">
1 - Conditions
2 - Accept
</textarea>
<input name="Accept" type="button" value="Accept" class="submit"/>
<input name="Refuse" type="button" value="Refuse" class="submit"/>
</fieldset>
</form> |
CSS :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| fieldset {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 12px;
color: #33CCFF;
border: 1px solid #3399FF;
padding:2px;
}
#styleform input.inp, textarea.inp
{
border: 1px solid #ddd;
font: 11px arial,verdana, sans-serif;
color: #443;
padding: 2px;
text-indent: 1.2em;
outline: none;
}
#styleform textarea.inp {
width: 89%;
height:150px;
overflow:scroll;
}
#styleform input.inp:hover, textarea.inp:hover,
#styleform input.inp:focus, textarea.inp:hover
{
border: 1px solid #aaa;
} |
Merci :)