|
Posted by Jukka K. Korpela on 02/24/06 17:45
"acorn" <acorn71@gmail.com> wrote:
> I have read MANY posts reagarding the use of css to modify form
> elements. I understand the pros and cons regarding browser as well
> as OS compatibility.
Really?
> I need
This contradicts with your previous statement. CSS is for optional
presentational suggestions.
> to make the <select> element arrow -
> and the button face behind the arrow - a different color for a site
> that is requiring the user to run IE only.
Whatever it requires cannot be guaranteed, but people who try to do
such foolish things probably manage to discriminate against IE 7, for
example.
> Anyone know if this is
> possible using IE?
No.
> I have been able to use the following code below to change the text
> and background of the <select> element, however the
> "arrow-color:#ffffff" does not work. And I haven't found anywhere
> the code to change the button face behind the arrow.
>
> select {
> font-family: Verdana, Arial, Helvetica, sans-serif;
> font-size: 10px;
> font-weight: normal;
> color: #FFFFFF;
> background-color: #9c9a9c;
> text-decoration: blink;
> arrow-color: #ffffff;
> }
What made you think arrow-color would work? It sounds you started
inventing properties and expected browsers to read your mind.
If that's the approach, why not simply use
dwim: now !important;
or something like that? :-)
Seriously, the place to start with IE-specific tuning is the Microsoft
documentation:
http://msdn.microsoft.com/workshop/author/css/reference/attributes.asp
Look at the properties with names starting with scrollbar-...
Specifically, you'll find that there _is_ scrollbar-arrow-color and it
does _not_ work for select (though it works e.g. for textarea).
You could simulate a <select> element using a scrollable <div> element
that contains a set of radio buttons, though the appearance would be
different of course.
BTW, e.g. setting font-size: 10px shows that you have _not_ understood
the pros and cons of messing around with form fields and other
elements.
The text-decoration: blink part was an attempt at a joke, right?
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
Navigation:
[Reply to this message]
|