WebSite X5Help Center

 
Stephen C.
Stephen C.
User

Html button  en

Author: Stephen C.
Visited 365, Followers 1, Shared 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?

Posted on the
4 ANSWERS - 1 CORRECT
Daniel W.
Daniel W.
User
Best User of the month DEBest User of the month EN

Here an example:

<input type="button" style="background-color: green; color:yellow; font-size: 24px;" value="Refresh page" onclick="location.reload(true);" />

-----

Read more
Posted on the from Daniel W.
Daniel W.
Daniel W.
User
Best User of the month DEBest User of the month EN

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);" />

-----

Read more
Posted on the from Daniel W.