Hi,
I want to chang the submit button style without having to add a class reference to each button.
So, is there something like:
button.submit { }
that works?
Than I only need a style file entry, otherwise I have to change a lot of buttons manually; I cannot do it al at once cause it is all integrated in code.Must have id, class or within another element.You're close. It will look something like this:
input[type="submit"] { color: green; background-color: yellow; }While that would be the best solution, it doesn't work on Internet Explorer, meaning if your doing this on an internet site, probably 90% (if you have a lot of traffic) of your viewers wouldn't see the uberNifty stylings for your submit button, so it would be a good ideas to use classes if you must have styled submit buttons. However, it also can help to have all buttons look the same, or at least like normal form elements, so that users will easily recognize them.The attribute value selector will not work on inputYes, actually you can use Ray's method, but it'll only work on real browsers, like I've said.Not in Mozilla 1.6 nor FF 0.7
If you got it to work I'd like to see the code.You are correct it doesn't work in IE but it does in Gecko.
<!-- m --><a class="postlink" href="http://blab-n-lab.home.comcast.net/lab/styletest.htmlI">http://blab-n-lab.home.comcast.net/lab/styletest.htmlI</a><!-- m --> stand corrected
I want to chang the submit button style without having to add a class reference to each button.
So, is there something like:
button.submit { }
that works?
Than I only need a style file entry, otherwise I have to change a lot of buttons manually; I cannot do it al at once cause it is all integrated in code.Must have id, class or within another element.You're close. It will look something like this:
input[type="submit"] { color: green; background-color: yellow; }While that would be the best solution, it doesn't work on Internet Explorer, meaning if your doing this on an internet site, probably 90% (if you have a lot of traffic) of your viewers wouldn't see the uberNifty stylings for your submit button, so it would be a good ideas to use classes if you must have styled submit buttons. However, it also can help to have all buttons look the same, or at least like normal form elements, so that users will easily recognize them.The attribute value selector will not work on inputYes, actually you can use Ray's method, but it'll only work on real browsers, like I've said.Not in Mozilla 1.6 nor FF 0.7
If you got it to work I'd like to see the code.You are correct it doesn't work in IE but it does in Gecko.
<!-- m --><a class="postlink" href="http://blab-n-lab.home.comcast.net/lab/styletest.htmlI">http://blab-n-lab.home.comcast.net/lab/styletest.htmlI</a><!-- m --> stand corrected