Hi, I have the following problem:
I check my form for some php error messages.
if there is no error, I just use the css setting:
.wrapper #frame form fieldset ul input { color: #f23; font-size: 10px; height: 18px; padding-left: 5px; margin-top: 3px; outline:none; }
and my focus settings:
.wrapper #frame form fieldset ul input:focus{ color:#fff; font-weight: bold; border: 2px solid #fff; }
OK, now I changed this line:
<input type="text" id="normal" name="1" value=""/>
with the addition of an error class:
<input class="err" type="text" id="normal" name="1" value=""/>
the problem is that my settings are only done for my class data in the input fields, but not in my focus settings:
.err { color: #444444; font-size: 10px; width: 180px; height: 18px; padding-left: 5px; outline:none; background-image: url(../images/error.png); } .err input:focus{ color:#f23; font-weight: bold; border: 2px solid #f23; }
therefore, if there is someone who could tell me why this does not work, I would really appreciate it. Thank you very much.
bonny source share