Bulma Size

Bulma size is used to set your website’s content font size, there are 7 different sizes class in Bulma. You can use any of them to define the size of your context.

Size classes:

  • is-size-1: The size of this class is pre defined which is font-size of 3rem.
  • is-size-2: The size of this class is pre defined which is font-size of 2.5rem.
  • is-size-3: The size of this class is pre defined which is font-size of 2rem.
  • is-size-4: The size of this class is pre defined which is font-size of 1.5rem.
  • is-size-5: The size of this class is pre defined which is font-size of 1.25rem.
  • is-size-6: The size of this class is pre defined which is font-size of 1.0rem.
  • is-size-7: The size of this class is pre defined which is font-size of 0.75rem.

Example: Below example illustrate the size class in Bulma.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>Bulma Typography</title>
    <link rel='stylesheet'
          href=
'https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.css'>
</head>
  
<body class="has-text-centered">
    <h1 class="is-size-2 has-text-success">
        w3wiki
    </h1>
    <b>Bulma Size</b>
    <br>
    <div class="container">
        <p class="is-size-1">w3wiki</p>
  
        <p class="is-size-2">w3wiki</p>
  
        <p class="is-size-3">w3wiki</p>
  
        <p class="is-size-4">w3wiki</p>
  
        <p class="is-size-5">w3wiki</p>
  
        <p class="is-size-6">w3wiki</p>
  
        <p class="is-size-7">w3wiki</p>
  
    </div>
</body>
</html>


Output:

Size

Reference: https://bulma.io/documentation/helpers/typography-helpers/#size