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
  • 17,626
  • 12
  • 64
  • 115
peace_love
  • 6,229
  • 11
  • 69
  • 157

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,123
  • 4
  • 27
  • 44
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
  • 42,106
  • 15
  • 72
  • 87
1

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