0
How to make a button in html and style with css
3 Respuestas
+ 1
<input class="anyClassName" type="button" value="yourButtonName" />
or
<button class="anyClassName">YourButtonName</button>
Both options will look the same. And style:
.anyClassName {
border: 2px solid red;
border-radius: 2px;
}
As far as I remember there are several browser styles that more difficult to change in buttons, selects etc... but in case if you would like to do smth special - give us more details)
0
Html:
<button>Some text</button>
CSS:
button {
Your stylization
}
OR
Html:
<button class="Some_text">Some text</button>
CSS:
button.Some_text {
Your stylization
}
Remember: If you're adding a class, you can name it as you want, and then type its name after the dot, as you can see in the examples above. This version is useful when you need to style multiple buttons.
I hope I helped.