Home > Back-end >  How to allow user to change font size
How to allow user to change font size

Time:08-07

I am making a google docs like app, and I want the user to be able to select the text, and then change the size to whatever they want. I tried to use variables but it didn't work so I am not sure what to do. Is there any way to allow the user to change the font size and if so how?

Here is the code for the app:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>Editor</title>
    <link rel="stylesheet" href="index.css" />
  </head>
  <body>
    <button  onclick="document.execCommand('bold',false,null);">
                 
  • Related