An open API service indexing awesome lists of open source software.

https://github.com/itsjonq/hstack-vstack-css

CSS layout components that (basically) horizontally and vertically stack anything.
https://github.com/itsjonq/hstack-vstack-css

css flex flexbox flexbox-css horizontal hstack layouts stacking vertical vstack

Last synced: about 1 month ago
JSON representation

CSS layout components that (basically) horizontally and vertically stack anything.

Awesome Lists containing this project

README

        

# 🗄 HStack and VStack in CSS

> CSS layout components that (basically) horizontally and vertically stack anything.

## Usage

✌️ Check out the **[code here](https://github.com/ItsJonQ/hstack-vstack-css/blob/master/src/styles.css)**.

### Horizontally Stacking

The `.spacer` is used in the (below) example to push the items apart.

```html


🌭

🍕


🍟


```

### Vertically Stacking

```html


🌭

🍕

🍟


```

### Swapping from VStack to HStack (responsively)

The example below stacks items vertically on mobile. However, the items stack horizontally at the medium breakpoint for tablets.

```html


🌭

🍕

🍟


```