Daniel Ramirez-Escudero
Daniel Ramirez-Escudero

Reputation: 4047

appearance: none cross-browser solution

I'm tryin gto style a button HTML5 element and I see that there is an automatic appearance applied to these elements. Reading on blogs I found this solution:

.thing {
   -webkit-appearance: value;
   -moz-appearance:    value;
   appearance:         value;
}

But then I checked and it seems this does not work on IE neither on Opera. How can I make this work in all browsers?

Upvotes: 0

Views: 381

Answers (1)

Adam
Adam

Reputation: 4683

This might be similar to what you're trying to do:

How do I make an html link look like a button?

Unfortunately there's no real way of simulating a button in IE or Opera, they just don't support it. You could do some CSS fiddling to make .thing look like a button, but because buttons appear differently on each browser, it might look change having an IE button in an Opera window. Your best option is probably to put an actual button on the page.

If you gave us some code or any idea of what you're trying to achieve, we might be able to give you more help.

Upvotes: 1

Related Questions