Html button
Autor: Stephen C.
Visitado 842,
Followers 1,
Compartido 0
I am inserting some HTML to create a button thus:
<input type="button" value="Refresh page" onclick="location.reload(true);" />
How can I set the color, background-color, font etc?
Publicado en
With <style> ... </style> and CSS code, see
>> https://de.w3docs.com/snippets/css/wie-kann-man-die-farbe-eines-html5-input-platzhalters-mit-css-andern.html (in German)
Not tested.
Here an example:
<input type="button" style="background-color: green; color:yellow; font-size: 24px;" value="Refresh page" onclick="location.reload(true);" />
-----
Another example:
<input type="button" style="padding: 20px; border-radius: 10px; background-color: green; color:yellow; font-size: 24px;" value="Refresh page" onclick="location.reload(true);" />
-----
you can use the code of the very kind Daniel W. if you also want the hover function you just need the usual and simple CSS code adding the background color
https://giancawordpress.altervista.org/link-testo.html