![]() |
VOOZH | about |
Spectre Position classes are used for useful layout and position things, including clearfix, float, position, margin, and padding utilities. The clearfix is a way for an element to automatically clear or fix its elements so that it does not need to add additional markup and the float is used to position the elements to the left, right, of its container along with permitting the text and inline elements to wrap around it.
The position tells about the method of positioning for an element or an HTML entity. Margins are used to create space around the element. We can set the different sizes of margins for individual sides(top, right, bottom, left) and paddings are used to create space around the element, inside any defined border.
Spectre Position Class:
Syntax:
<element class="Position-Class">
Below examples illustrate the Spectre Position.
Example 1: In this example, we will use float-right class.
Output:
Example 2: In this article, we will use all the margin and padding classes.
Output:
Reference link: https://picturepan2.github.io/spectre/utilities/position.html