{"id":17380245,"url":"https://github.com/ulivz/css-layout","last_synced_at":"2025-10-09T23:34:40.494Z","repository":{"id":66083660,"uuid":"86361124","full_name":"ulivz/css-layout","owner":"ulivz","description":"CSS layout samples","archived":false,"fork":false,"pushed_at":"2017-03-30T06:45:19.000Z","size":4884,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T20:41:41.485Z","etag":null,"topics":["css","css-layout","layout"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ulivz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-03-27T16:53:46.000Z","updated_at":"2021-05-19T18:12:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"a2c87c25-d793-42e2-829f-1b5420a85c9f","html_url":"https://github.com/ulivz/css-layout","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ulivz/css-layout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulivz%2Fcss-layout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulivz%2Fcss-layout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulivz%2Fcss-layout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulivz%2Fcss-layout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ulivz","download_url":"https://codeload.github.com/ulivz/css-layout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulivz%2Fcss-layout/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002310,"owners_count":26083340,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","css-layout","layout"],"created_at":"2024-10-16T06:41:52.718Z","updated_at":"2025-10-09T23:34:40.480Z","avatar_url":"https://github.com/ulivz.png","language":"HTML","readme":"# CSS layout\n\nCSS layout samples\n\n## Layout List\n\n- Two Columns Layout\n\t- via `float`\n\t- via `negative margin`\n\t- via `flexbox`\n\t\n- Three Columns Layout\n\t- via `negative margin`\n\t- via `flexbox`\n\t\n- CSS Center Layout\n\t- Text\n\t\t- Single Line\n\t\t- Multiple Lines\n\t- Block\n\t\t- Inline Block\n\t\t- Block\n\n\n## Demo\n\n### Two Columns Layout\n\n\u003cimg style=\"width: 300px\" src=\"img/1.gif\" alt=\"\"\u003e\n\n### Three Columns Layout\n\n\u003cimg style=\"width: 300px\" src=\"img/2.gif\" alt=\"\"\u003e\n\n### CSS Center - Text\n\n\u003cimg style=\"width: 300px\" src=\"img/3.gif\" alt=\"\"\u003e\n\n### CSS Center - block\n\n\u003cimg style=\"width: 300px\" src=\"img/4.gif\" alt=\"\"\u003e\n\n## Compatibility\n\n- `float`： IE6+, Firefox 2+, Chrome 1+ etc;\n- `negative margin`: IE6+, Firefox 2+, Chrome 1+ etc;\n- `flex`： Till 2017-3-28: \n\n\u003cimg style=\"width: 70%\" src=\"img/03.png\" alt=\"\"\u003e\n\n## Suggestion\n\n- Two columns in PC-side —— `float`;\n- Three columns in PC-side —— `margin`;\n- Mobile application —— `flex`。\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulivz%2Fcss-layout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fulivz%2Fcss-layout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulivz%2Fcss-layout/lists"}