Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
  <title>v-bind font-size</title>
  <style>
    #app > div {
      width: 200px;
      padding: 20px;
      border: dashed black 1px;
      background-color: lightcoral;
    }
  </style>
</head>
<body>
<h1>'v-bind' Font Size Example</h1>
<p>We can write CSS properties in kebab-case and in hyphens and get the same result, but it is not recommended.</p>
<div id="app">
  <div v-bind:style="{ 'font-size': size + 'px' }">Text example</div>
</div>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script>
  const app = Vue.createApp({
   data() {
    return {
      size: 28
    }
   }
  })
  app.mount('#app')
</script>
</body>
</html>