Reputation: 23
I would like to have a coloured border around the text of a button.
My button is like this:
<input id="btnexit" class="exitbutton" type="button" value="Exit" name="btnExit"></input>
I already add in CSS the style of the border of the button, but I need to add also a coloured border around the text Exit
.
Is it possible to do that in CSS? How could I do otherwise?
Upvotes: 2
Views: 5891
Reputation: 6736
try this :
<button type="button">
<span style="border:1px solid #FF0000;">Button</span>
</button>
Upvotes: 1
Reputation: 8981
LIke this
.exitbutton {
padding:10px;
background-color:white;
cursor:pointer;
}
input{
border:1px solid blue;
}
Upvotes: 0