Reputation: 6461
In my form I have a submit button:
<button name ="sort" value="sort" type="submit">▼</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?
Upvotes: 0
Views: 343
Reputation: 43574
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">▼</button>
Hint: If you want to define the rule only for this button you have to replace
button
withbutton[name="sort"]
or set a class.
Upvotes: 1
Reputation: 2163
Yes, you can just use CSS to remove the background and border
button {
background: none;
border: none;
}
<button name ="sort" value="sort" type="submit">▼</button>
Upvotes: 3
Reputation: 2625
<button name ="sort" value="sort" type="submit" style="background-color:transparent;border:0">▼</button>
Upvotes: 1