Horizontal

Horizontal lets you lay things out horizontally.


Display flex with useful enhancements

Horizontal lets you lay things out horizontally. It’s display: flex but with a few extra features.

It just sounds… more descriptive (and more memorable) compared to flex.

index.html
<div class="Horizontal">
<div>One</div>
<div>Two</div>
<div>Three</div>
</div>
One
Two
Three

Justify Content with Flexbox

Horizontal uses display:flex underneath the hood so you can use all the Flexbox properties you’re used to.

Start
One
Two
Three
Center
One
Two
Three
End
One
Two
Three
Space Around
One
Two
Three
Space Between
One
Two
Three

Align items with Flexbox

Aligning items is simple as well — just use what Flexbox already provides you with.

Stretch
One
Two
Three
Start
One
Two
Three
Center
One
Two
Three
End
One
Two
Three
Baseline
One
Two
Three

Control Spacing with Spacer

Spacer lets you create spaces between Horizontal items. Think of it like justify-content: space-between but with more control.

index.html
<div class="Horizontal">
<div>Logo</div>
<div class="Spacer">About</div>
<div>Contact</div>
</div>
Logo
About
Contact