Reputation: 179
This the html
code to create the button
<div class="delete-style">
<button type="button">DELETE</button>
</div>
and am using this css
code to remove the border surrounding the text in the button
.delete-style {
background-color: red;
padding: 10px 20px;
text-decoration: none;
display: inline-block;
outline: None;
overflow: hidden;
}
Upvotes: 0
Views: 174
Reputation: 21
You are trying to style the div, not button. declare class to the button, it will work.
<div>
<button type="button" class="delete-style">DELETE</button>
</div>
Upvotes: 1
Reputation: 5162
To remove border around the button you can add border : None;
style to your button
.delete-style {
background-color: red;
padding: 10px 20px;
text-decoration: none;
display: inline-block;
outline: None;
overflow: hidden;
}
.delete-style button {
border: None;
}
<div class="delete-style">
<button type="button">DELETE</button>
</div>
Upvotes: 1