Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Submit button has bevel I cant get rid of

Tags:

I am trying to get rid of the default bevel and border that most browsers/OS have set as the default on Submit buttons. When I use CSS to add a background image it just displays the image in the background of the button but the bevel is still there. Is there a way to make the button just display just my image? Is the only way to do that to set the image path in the src tag of the html input element?

like image 604
Graham Avatar asked May 12 '09 22:05

Graham


People also ask

How do you hide the outline of a button?

If you want to remove the focus around a button, you can use the CSS outline property. You need to set the “none” value of the outline property.

How do you fix a button width?

Tip: Use pixels if you want to set a fixed width and use percent for responsive buttons (e.g. 50% of its parent element).

How do I round a button in CSS?

To create a rounded button you have to make use of the border-radius CSS property. The higher the value for that property the more rounder the corners will be. You can use any CSS unit for the boorder-radius property. It can be pixels, ems, rems, percentages etc.

How do you make a button border transparent?

HTML Code: In this section, we will create a basic structure of button using the button Tag. CSS Code: In this section, we will design the button using CSS property. We will use the background-color: transparent; property to set the button with transparent look.


1 Answers

You will need to remove the border (bevel) like so:

input {
    border: 0;
}
like image 161
janhartmann Avatar answered Sep 28 '22 11:09

janhartmann