I am trying to make a button in css like this one
but I have no idea how to do it as I am new to css. This is what I tried:
.gbtnHollow {
background: transparent;
height: 38px;
line-height: 40px;
border: 2px solid white;
display: inline-block;
float: none;
text-align: center;
width: 120px;
padding: 0px!important;
font-size: 14px;
color: #fff;
}
.gbtnHollow:hover {
color: #fff;
background: rgba(255, 255, 255, 0.2);
}
Creating Fully Transparent Buttons Start by creating a simple button in HTML and CSS. Then, change the background color value to transparent. Change the text color on the button so that its still visible under the new background.
Defines the color of the element's borders. default border-color: transparent; Applies a transparent color to the borders.
You can make a button without borders in HTML. To remove them, you have to use the border property in CSS and set it to none.
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.
It's very simple, set background: none;
to button. JSFiddle
button {
background-color: Transparent;
background-repeat:no-repeat;
cursor:pointer;
overflow: hidden;
outline:none;
}
Add this and customize it for you. Example is here on Fiddle
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With