[web] CSS: Identifying buttons!

Started by
3 comments, last by benryves 18 years, 9 months ago
We're thinking about changing the appearance of the grey form buttons on a site. Now, I can easily change them all by overriding input in the CSS file, but this mucks up all the other input controls, like the text boxes. Is there a way to apply the style to all the buttons without having to go through each page and set a class="submitbutton" on any buttons?

[Website] [+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++]

Advertisement
You could do it in CSS2, using input[type=submit], but I doubt the current IE borwser will like that...
Quote:Original post by evolutional
...but I doubt the current IE browser will like that...
Unsurprisingly, it doesn't. Ah well, find-and-replace, here I come!

[Website] [+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++]

You could use JavasScript, IF you're already including a script on each page ;)
Quote:Original post by Fuzztrek
You could use JavasScript, IF you're already including a script on each page ;)
We're already including a lot of scripts (fancy drop-down menus, popup message boxes, bouncing PM notifications) and really don't want to add any more!

[Website] [+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++]

This topic is closed to new replies.

Advertisement