Linda Miller, DVM wrote:
> I would like to style an input button
>
> <input type="button" value="Close" id="closeButton">
>
> What selector would I use to do this?
>
> There are other buttons that I do not want to style the same as this 
> button.
Hi, i use the following for not ie6 browsers:
input[type="submit"] {
    anything: you_want;
}

and use this for ie6:
input {
    border: expression(this.type=='submit' ? '1px solid #000' : 'none');
}

In the expression you can recognize the type of the input field.
But you must add "border" for other input fields too.
So in the above expressen I give '1px solid #000' border for any submit 
field on the page,
and 'none' for any other input field, but you can write this also:
input {
    border: expression(this.type=='submit' || this.type=='text' ? '1px 
solid #000' : 'none');
}
in this case any submit and text fields get '1px solid #000' border and 
anything else get 'none'
This is javascript in css, but is works only in ie.
But I just use it in ie6, anywhere else it not needed and if you can, 
avoid to using these.
The explanation is why: 
http://developer.yahoo.net/blog/archives/2007/07/high_performanc_6.html
But if you don't use many of these expressions, I think you can use it. 
I do :)

Or the other solution is you can add class for any submit field.
Or you can write javascript to window.onload function.


Kata

______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to