Bulma Size
Last Updated :
08 Dec, 2021
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 =
</ head >
< body class = "has-text-centered" >
< h1 class = "is-size-2 has-text-success" >
GeeksforGeeks
</ h1 >
< b >Bulma Size</ b >
< br >
< div class = "container" >
< p class = "is-size-1" >GeeksforGeeks</ p >
< p class = "is-size-2" >GeeksforGeeks</ p >
< p class = "is-size-3" >GeeksforGeeks</ p >
< p class = "is-size-4" >GeeksforGeeks</ p >
< p class = "is-size-5" >GeeksforGeeks</ p >
< p class = "is-size-6" >GeeksforGeeks</ p >
< p class = "is-size-7" >GeeksforGeeks</ p >
</ div >
</ body >
</ html >
|
Output:
Size
Reference: https://bulma.io/documentation/helpers/typography-helpers/#size
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...