Skip to content

Add flexbox tutorial showing how to realise vertical placements of elements - #33

Open
benjaminweb wants to merge 7 commits into
seanhess:mainfrom
benjaminweb:flex-tutorial
Open

benjaminweb wants to merge 7 commits into
seanhess:mainfrom
benjaminweb:flex-tutorial

Conversation

@benjaminweb

Copy link
Copy Markdown

Adds examples going through different flex box alignments and other characteristics.

This clarifies greatly for example how to use grow and space for vertical placement of elements.

(I realised this by working through https://css-tricks.com/snippets/css/a-guide-to-flexbox/)

Users benefit from this by copying and starting from a working example instead of fiddling around to find the (yet undocumented) solution for the required layout.

This is of course a working draft. Let me know what could be added.
Also, this could be used as template for defining vertical placement functions in atomic-css directly like center.

Screenshot 2026-10-05 at 22 17 33

@benjaminweb

Copy link
Copy Markdown
Author

/layout is now:

Screenshot 2026-10-06 at 15 40 45

@benjaminweb

Copy link
Copy Markdown
Author

/text is now:
IMG_8965
/whitespace-text is now:
IMG_8967

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant