The icon element is a container for any type of icon font. Because the icons can take a few seconds to load, and because you want control over the space the icons will take, you can use the icon class as a reliable square container that will prevent the page to "jump" on page load.
The yellow background is only here for demonstration purposes, to highlight the icon container's area.
By default, the icon container will take up exactly1.5rem x 1.5rem. The icon itself is sized accordingly to the icon library you're using. For example, Font Awesome 5 icons will inherit the font size.
You can combine an icon with text, using the icon-text wrapper, as long as all text inside is wrapped in its own span element:
You can combine as manyicon elements and text elements as you want:
Since icon-text is an inline-flex element, it can easily be inserted within any paragraph of text.
An invitation to
was soon afterwards dispatched; and already had Mrs. Bennet planned the courses that were to do credit to her housekeeping, when an answer arrived which deferred it all. Mr. Bingley was obliged to be in
the following day, and, consequently, unable to accept the honour of their
Mrs. Bennet was quite disconcerted. She could not imagine what business he could have in town so soon after his
in Hertfordshire; and she began to fear that he might be always
about from one place to another, and never settled at Netherfield as he ought to be.
You can also turn the icon-text into a flex element simply by using a <div> tag instead:
Your package will be delivered on Tuesday at 08:00.
Your image has been successfully uploaded.
Some information is missing from your profile details.
The Bulma icon container comes in 4 sizes. It should always be slightly bigger than the icon it contains. For example, Font Awesome 5 icons use a font-size of 1em by default (since it inherits the font size), but provides additional sizes.