Reputation: 27133
input[type=submit] {
float: left;
font-size: 14px;
width: 30%;
height: auto;
text-align: center;
font-weight: normal;
line-height: 30px;
word-wrap: break-word;
margin-left: 34.998721%;
margin-top: 20px;
clear: both;
min-height: 0px;
font-family: helvetica;
color: rgb(255, 255, 255);
background-color: rgb(0, 154, 222);
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
}
So when I apply this styles to the <p>
tag it looks:
but when I apply it for submit button it looks with some borders around it:
How to remove this border?
Upvotes: 0
Views: 2790
Reputation: 1
border-style property is set to be none by default, it seems that by defining border-top-left-radius property and so on the border-style is alternated to be solid thus you have the unwanted border. You can simply add border-color property and set it as transparent, then you should have got your desired result
Upvotes: 0
Reputation: 3907
Since button elements do have a border on it's own, you have to disable it in order to get get it not shown.
To achieve this, you can rely on the border-style option found here.
So if you want to disable the standard-border of your submit button, you can simply add this line to your CSS.
border-style: none;
Upvotes: 0
Reputation: 10110
try adding this property to the css rule:
border: none;
if it didn't work then also add:
outline: none;
Upvotes: 2