1
LazyBadger
IE's CSS problem

For getting nice buttons I added this definition in CSS files

input[type="submit"], input[type="button"], input[type="reset"] {background-color: #494949; color: #59DF20; border-width:1px;}
and it works with FireFox, Opera...
But in IE (6.0) I get default light-grey button
Can I fix it?!

2
Herko
Re: IE
  • 2005/1/11 9:47

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


StudioC helped me out on this one:

use input#submit and input#button etc. for MSIE Give each browser specific style it's own style definition:

input[type=a],input[type=b],input[type=c] {
}
input#a,input#b,input#c {
}

Because otherwise IE will ignore them.

Herko

3
LazyBadger
Re: IE

Quote:

use input#submit and input#button etc. for MSIE Give each browser specific style it's own style definition:

Now I had a chance to try it...
Created input#submit {..}
input#button {...}
input#reset {...}

but get default buttons anyway... Fix my hands, please (or brain?!)

Login

Who's Online

142 user(s) are online (96 user(s) are browsing Support Forums)


Members: 0


Guests: 142


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits