>What do you mean "... are mixed"?
Well, I my example, for NetScape:
HTML
++++++++++++++++++++++++++++++++++++++++
<input TYPE="button" NAME="btn1" VALUE="<<" DISABLED class="MyButton">
<input TYPE="button" NAME="btn2" VALUE="<<" class="MyButton">
++++++++++++++++++++++++++++++++++++++++
StyleSheet
++++++++++++++++++++++++++++++++++++++++
INPUT[type=button] {background: Green;}
INPUT[disabled] {background: Lime;}
..MyButton {background: Maroon;}
..MyButton[disabled] {background: Red;}
++++++++++++++++++++++++++++++++++++++++
btn1 becomes red ->> settings from .MyButton definition
btn2 becomes green ->> settings from INPUT definition --> NOT logic
In my opinion, btn2 should becom Maroon, because
- it has class MyButton
- it is enabled
so it should have definition of .MyButton (maroon) and NOT definition of
INPUT (green)
Definitions are 'mixed' here.
any idea?
tia
bartp
--
HyperART
Paul Van Ostaijenlaan 4
3001 Heverlee
"Stanimir Stamenkov" <s7****@netscape.net> wrote in message
news:bm************@ID-207379.news.uni-berlin.de...
Bart Plessers (artabel) wrote:
* MSIE doesn't support attribute selectors. If you care about this
behind the times browser you have to use classes instead.
what do you mean by this?
Currently I use
<TAG class="mystyle"> qsdfqsdf </TAG>
where mystyle is defined in a stylesheet like:
.mystyle {.....}
Yes, this is a class selector
<http://www.w3.org/TR/CSS21/selector.html#class-html>.
<...>
And my stylesheet
++++++++++++++++++++++++++++++++++++++++
INPUT[type=button] {background: Green;}
INPUT[disabled] {background: Lime;}
..MyButton {background: Maroon;}
..MyButton[disabled] {background: Red;}
++++++++++++++++++++++++++++++++++++++++
These ([attr=val]) are attribute selectors
<http://www.w3.org/TR/CSS21/selector.html#attribute-selectors> which
are not supported in IE.
On Internet Explorer, the class MyButton is displayed, but no difference
is made between 'enabled' and 'disabled', all the buttons are "Maroon"
<...>
Do you have any about those inconsistencies?
It seems to me that styles for tags and styles for classes are mixed...
What do you mean "... are mixed"?
Do you have a tip how to
- have different styles for enabled/disabled buttons in MSIE (without
the need to assign different classes)
AFAIK, no way. You may try some of the groups on the
msnews.microsoft.com server or browse/search the MSDN Library
<http://msdn.microsoft.com/library>.
- have a consistent layout in MSIE, Navigator and opera (and other...)?
Experiment, see what works, where, and find/search for specific
issue (when you enconter such) workarounds - you may ask in the groups.
--
Stanimir