Change the font size of a button with CSS

CSSWeb DevelopmentFront End Technology

To change the font size of a button, use the font-size property.

You can try to run the following code to change the font size

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <style>
         .button {
            background-color: yellow;
            color: black;
            text-align: center;
            font-size: 15px;
         }
      </style>
   </head>
   <body>
      <h2>Result</h2>
      <p>Click below for result:</p>
      <button class = "button">Result</button>
   </body>
</html>
raja
Published on 23-May-2018 11:59:13
Advertisements