0

In my form I have a submit button:

<button name ="sort" value="sort" type="submit">&#9660;</button>

The button looks like a "button". This is not what I want, I would simply like the button look like this:

So this means without any style, only the black arrow. Is this possible?

Filburt
  • 16,951
  • 12
  • 63
  • 111
peace_love
  • 5,799
  • 9
  • 52
  • 132

3 Answers3

3

Yes, you can just use CSS to remove the background and border

button {
  background: none;
  border: none;
}
<button name ="sort" value="sort" type="submit">&#9660;</button>
Tim
  • 2,104
  • 4
  • 25
  • 43
1

The only properties of the button which are visible are background and border. So you have to set these properties to nothing like the following code:

button {
  background:none;
  border:0;
}
<button name ="sort" value="sort" type="submit">&#9660;</button>

Hint: If you want to define the rule only for this button you have to replace button with button[name="sort"] or set a class.

Sebastian Brosch
  • 39,662
  • 14
  • 68
  • 78
1

<button name ="sort" value="sort" type="submit" style="background-color:transparent;border:0">&#9660;</button>
Aman Rawat
  • 2,605
  • 1
  • 21
  • 39