{"id":20196992,"url":"https://github.com/itsjonq/hstack-vstack-css","last_synced_at":"2026-03-14T20:42:26.037Z","repository":{"id":146984571,"uuid":"300396844","full_name":"ItsJonQ/hstack-vstack-css","owner":"ItsJonQ","description":"CSS layout components that (basically) horizontally and vertically stack anything.","archived":false,"fork":false,"pushed_at":"2020-10-01T19:18:56.000Z","size":87,"stargazers_count":43,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-24T09:38:33.871Z","etag":null,"topics":["css","flex","flexbox","flexbox-css","horizontal","hstack","layouts","stacking","vertical","vstack"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ItsJonQ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-01T19:16:35.000Z","updated_at":"2025-02-21T04:49:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"03816ad7-8cf1-444f-8558-fc5df7edf4d0","html_url":"https://github.com/ItsJonQ/hstack-vstack-css","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsJonQ%2Fhstack-vstack-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsJonQ%2Fhstack-vstack-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsJonQ%2Fhstack-vstack-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsJonQ%2Fhstack-vstack-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ItsJonQ","download_url":"https://codeload.github.com/ItsJonQ/hstack-vstack-css/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248200896,"owners_count":21063994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","flex","flexbox","flexbox-css","horizontal","hstack","layouts","stacking","vertical","vstack"],"created_at":"2024-11-14T04:26:52.764Z","updated_at":"2026-03-14T20:42:25.977Z","avatar_url":"https://github.com/ItsJonQ.png","language":"CSS","readme":"# 🗄 HStack and VStack in CSS\n\n\u003e CSS layout components that (basically) horizontally and vertically stack anything.\n\n## Usage\n\n✌️ Check out the **[code here](https://github.com/ItsJonQ/hstack-vstack-css/blob/master/src/styles.css)**.\n\n### Horizontally Stacking\n\nThe `.spacer` is used in the (below) example to push the items apart.\n\n```html\n\u003cdiv class=\"flex hstack\"\u003e\n\t\u003cdiv\u003e🌭\u003c/div\u003e\n\t\u003cdiv\u003e🍕\u003c/div\u003e\n\t\u003cdiv class=\"spacer\"\u003e\u003c/div\u003e\n\t\u003cdiv\u003e🍟\u003c/div\u003e\n\u003c/div\u003e\n```\n\n### Vertically Stacking\n\n```html\n\u003cdiv class=\"flex vstack\"\u003e\n\t\u003cdiv\u003e🌭\u003c/div\u003e\n\t\u003cdiv\u003e🍕\u003c/div\u003e\n\t\u003cdiv\u003e🍟\u003c/div\u003e\n\u003c/div\u003e\n```\n\n### Swapping from VStack to HStack (responsively)\n\nThe example below stacks items vertically on mobile. However, the items stack horizontally at the medium breakpoint for tablets.\n\n```html\n\u003cdiv class=\"flex vstack hstack@md\"\u003e\n\t\u003cdiv\u003e🌭\u003c/div\u003e\n\t\u003cdiv\u003e🍕\u003c/div\u003e\n\t\u003cdiv\u003e🍟\u003c/div\u003e\n\u003c/div\u003e\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsjonq%2Fhstack-vstack-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsjonq%2Fhstack-vstack-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsjonq%2Fhstack-vstack-css/lists"}