Arunan Skanthan
unread,Jun 23, 2011, 2:34:12 AM6/23/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CSS Lint
Hi!
1) I have added a class 'error', to inputs, like so...
<input class="error" type="text" /><!-- for simplicity's sake -->
But the when I write my css the style does not get applied when it's
generic...
.error {
background: red;
}
But it DOES when it's specific..!
input[type="text"].error {
background: red; /* THIS WORKS!*/
}
2) The button element has different padding on different browsers...
to fix in IE7 I'm using...
*button {
padding: x y z g;
}
... lint says
Expected LBRACE at line 88, character 2.
Also I've written a generic button class .btn, which works on both
buttons and a-tags... but when I have to add the !important (*argh*)
to the button element in css to get styles to override the .btn
styles.
I hope this was clear?
Could someone help me shed light on what I'm doing wrong.