0

How to make a button in html and style with css

25th May 2020, 11:36 PM
David Ilenreh
David Ilenreh - avatar
3 Answers
25th May 2020, 11:53 PM
Gordon
Gordon - avatar
+ 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)
26th May 2020, 12:00 AM
BALU
BALU - avatar
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.
26th May 2020, 12:11 AM
Milosz MaliszewskiđŸ‡”đŸ‡±
Milosz MaliszewskiđŸ‡”đŸ‡± - avatar