Hi,
I've run across a problem styling form controls (quel surprise), or rather
in this case, "unstyling" them. I'm trying to put together a theme for a
web application which has a fairly primitive theme engine. Specifically, I
can define *additional* CSS rules using the theme engine, but I can't
remove the pre-existing ones that come with the application.
For the vast majority of the theme this hasn't been a problem given that
overriding stuff with CSS is hardly difficult. However, the base CSS rules
apply styles to most form controls (buttons, text areas, etc). I'd like to
override this to get the browser to render the form controls in the
"default" style, i.e. the way it would render them without any CSS rules
applied (usually the OS style in things like Opera, IE, Safari, etc).
Unfortunately, I haven't found any way of doing this - either in a
portable "clean" manner, or even in a browser-specific manner. I suspect
the answer is "you can't", but it doesn't hurt to check with the experts
:-)
Cheers,
Dave.
I've run across a problem styling form controls (quel surprise), or rather
in this case, "unstyling" them. I'm trying to put together a theme for a
web application which has a fairly primitive theme engine. Specifically, I
can define *additional* CSS rules using the theme engine, but I can't
remove the pre-existing ones that come with the application.
For the vast majority of the theme this hasn't been a problem given that
overriding stuff with CSS is hardly difficult. However, the base CSS rules
apply styles to most form controls (buttons, text areas, etc). I'd like to
override this to get the browser to render the form controls in the
"default" style, i.e. the way it would render them without any CSS rules
applied (usually the OS style in things like Opera, IE, Safari, etc).
Unfortunately, I haven't found any way of doing this - either in a
portable "clean" manner, or even in a browser-specific manner. I suspect
the answer is "you can't", but it doesn't hurt to check with the experts
:-)
Cheers,
Dave.
Comment