> * MSIE doesn't support attribute selectors. If you care about this behind[color=blue]
> the times browser you have to use classes instead.[/color]
what do you mean by this?
Currently I use
<TAG class="mystyle"> qsdfqsdf </TAG>
where mystyle is defined in a stylesheet like:
..mystyle {.....}
Here is my sample HTML
++++++++++++++++++++++++++++++++++++++++
<input TYPE="button" NAME="btnFirst" VALUE="<<" OnClick="GetFile('1')"
DISABLED class="MyButton">
<input TYPE="button" NAME="btnPrevious" VALUE="<" OnClick="GetFile('-11')"
DISABLED class="MyButton">
<input TYPE="button" NAME="btnClose" VALUE="#" OnClick="GetTable('1')"
class="MyButton">
<input TYPE="button" NAME="btnNext" VALUE=">" OnClick="GetFile('13')"
class="MyButton">
<input TYPE="button" NAME="btnLast" VALUE=">>" OnClick="GetFile('24')"
class="MyButton">
++++++++++++++++++++++++++++++++++++++++
And my stylesheet
++++++++++++++++++++++++++++++++++++++++
INPUT[type=button] {background: Green;}
INPUT[disabled] {background: Lime;}
..MyButton {background: Maroon;}
..MyButton[disabled] {background: Red;}
++++++++++++++++++++++++++++++++++++++++
On Internet Explorer, the class MyButton is displayed, but no difference is
made between 'enabled' and 'disabled', all the buttons are "Maroon"
On Netscape Navigator,
enabled buttons are 'Green' (from INPUT), disabled are 'Red' (from
class="MyButton" )
On Opera
enabled buttons are 'Green' (from INPUT), disabled are 'Red' (from
class="MyButton" )
Do you have any about those inconsistencies?
It seems to me that styles for tags and styles for classes 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)
- have a consistent layout in MSIE, Navigator and opera (and other...)?
thanx in advance,
bartp
--
HyperART
Paul Van Ostaijenlaan 4
3001 Heverlee
"David Dorward" <dorward@yahoo.com> wrote in message
news:bmg56k$8dt$1$830fa17d@news.demon.co.uk...[color=blue]
> bart plessers wrote:
>[color=green]
> > <input TYPE="button" ... DISABLED>
> > INPUT {
> > text-shadow: none;
> > }[/color]
>[color=green]
> > However, the 'shadow' of a disabled button is NOT removed.[/color]
>
> (a) text-shadow has no (AFAIK) browser support
> (b) that isn't a shadow, its a border
>[color=green]
> > How can I set the color of a disabled button to a custom color?[/color]
>
> input[disabled] { color: #faa; }*
>[color=green]
> > Is it possible to set a different color for the border and the text?
> > How can I apply these settings to only a BUTTON, and no other INPUT
> > fields?[/color]
>
> input[type=button] {}*
>
> * MSIE doesn't support attribute selectors. If you care about this behind
> the times browser you have to use classes instead.
>
> --
> David Dorward
http://dorward.me.uk/[/color]