Flexbox
SkyLineCSS provides a comprehensive set of utility classes to efficiently create flexible layouts using Flexbox. These classes offer control over alignment, direction, wrapping, and other properties of flex containers and items.
Display Flex
To create a flex container, simply apply the .flex
class:
Align Items
Align flex items along the cross axis with the following classes:
.items-start
: Align items at the start.items-center
: Align items at the center.items-end
: Align items at the end.items-baseline
: Align items baseline.items-stretch
: Stretch items to fill the container
Example:
Justify Content
Justify flex items along the main axis using these classes:
.justify-start
: Justify content at the start.justify-center
: Justify content at the center.justify-end
: Justify content at the end.justify-between
: Justify content with space between items.justify-around
: Justify content with space around items
Example:
Flex Direction
Change the direction of the flex container with these classes:
.flex-row
: Flex direction row.flex-row-reverse
: Flex direction row-reverse.flex-col
: Flex direction column.flex-col-reverse
: Flex direction column-reverse
Example:
Flex Wrap
Enable flex item wrapping using the .flex-wrap
class:
Responsive Flex
SkyLineCSS includes responsive classes for flex properties. For example:
These are some of the available Flexbox utilities in SkyLineCSS. You can combine these classes to create flexible and responsive layouts for your projects.
Last updated