{"id":13656543,"url":"https://github.com/ThisIsDallas/Simple-Grid","last_synced_at":"2025-04-23T22:31:03.283Z","repository":{"id":5016083,"uuid":"6174666","full_name":"ThisIsDallas/Simple-Grid","owner":"ThisIsDallas","description":"A basic responsive grid for winners. This project is based on Chris Coyier's post on grids http://css-tricks.com/dont-overthink-it-grids/","archived":false,"fork":false,"pushed_at":"2022-07-25T12:22:32.000Z","size":303,"stargazers_count":1635,"open_issues_count":19,"forks_count":282,"subscribers_count":106,"default_branch":"master","last_synced_at":"2025-04-05T21:45:12.119Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ifad/data-confirm-modal","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThisIsDallas.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}},"created_at":"2012-10-11T13:55:23.000Z","updated_at":"2025-03-31T00:54:08.000Z","dependencies_parsed_at":"2022-07-16T18:17:00.973Z","dependency_job_id":null,"html_url":"https://github.com/ThisIsDallas/Simple-Grid","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/ThisIsDallas%2FSimple-Grid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisIsDallas%2FSimple-Grid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisIsDallas%2FSimple-Grid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisIsDallas%2FSimple-Grid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThisIsDallas","download_url":"https://codeload.github.com/ThisIsDallas/Simple-Grid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250526511,"owners_count":21445188,"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":[],"created_at":"2024-08-02T05:00:22.967Z","updated_at":"2025-04-23T22:31:03.026Z","avatar_url":"https://github.com/ThisIsDallas.png","language":"HTML","funding_links":[],"categories":["HTML"],"sub_categories":[],"readme":"\u003ch2\u003eSimple Grid\u003c/h2\u003e\n\u003ch3\u003eIntro\u003c/h3\u003e\n\u003cp\u003eSimple Grid is a basic lightweight grid, not a CSS framework. There are no styles for buttons, tables, typography etc. etc. Simple Grid comes with two different types of grids. There is a grid for content, which looks like \u003ccode\u003e\u0026lt;div class=\"col-1-3\"\u0026gt;\u0026lt;/div\u0026gt;\u003c/code\u003e and a grid for layouts, which looks like \u003ccode\u003e\u0026lt;div class=\"col-4-12\"\u0026gt;\u0026lt;/div\u0026gt;\u003c/code\u003e. Simple Grid is also built for responsive layouts. With fluid columns, the grid will resize to adjust to the browser resolution. To accommodate for mobile and tablet devices, the grid will essentially stack all columns, one above another, when viewed on smaller screens. \u003c/p\u003e\n\n\u003ch3\u003eInstructions\u003c/h3\u003e\n\u003cp\u003e Before starting with anything please make sure to include this snippet of code in your \u003ccode\u003e\u0026lt;head\u0026gt;\u003c/code\u003e tag so that the grids will be responsive on mobile devices:\n\u003ccode\u003e\u0026lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"\n\u0026gt;\u003c/code\u003e\n\n\u003cp\u003eIn terms of use, Simple Grid is basically just like every other grid. Starting out, you need to wrap your grid in a div class named \u003ccode\u003egrid\u003c/code\u003e. If you want a 20px padding around your grid, add the class \u003ccode\u003egrid-pad\u003c/code\u003e to the div wrapper. Next, all you have to do is decide what size you want your grid to be and add the appropiate classes. For example, if you want a grid with a left sidebar and main content area you would do:\n\u003cpre\u003e\n\u0026lt;div class=\"grid\"\u0026gt;\n  \u0026lt;div class=\"col-3-12\"\u0026gt;\n  \u0026lt;/div\u0026gt;\n  \u0026lt;div class=\"col-9-12\"\u0026gt;\n  \u0026lt;/div\u0026gt;\n\u0026lt;/div\u0026gt;\n\u003c/pre\u003e\nIf you have a page and would like four columns of content, you would do:\n\u003cpre\u003e\n\u0026lt;div class=\"grid\"\u0026gt;\n  \u0026lt;div class=\"col-1-4\"\u0026gt;\n  \u0026lt;/div\u0026gt;\n  \u0026lt;div class=\"col-1-4\"\u0026gt;\n  \u0026lt;/div\u0026gt;\n  \u0026lt;div class=\"col-1-4\"\u0026gt;\n  \u0026lt;/div\u0026gt;\n  \u0026lt;div class=\"col-1-4\"\u0026gt;\n  \u0026lt;/div\u0026gt;\n\u0026lt;/div\u0026gt;\n\u003c/pre\u003e\nThe first column of content in your grid will always be floated left. If you would like to float a column to the right, all you have to do is add the class \u003ccode\u003epush-right\u003c/code\u003e.\u003c/p\u003e\n\n\u003ch3\u003ePush-Classes\u003c/h3\u003e\n\u003cp\u003eTo push a column to the right, you can use the \u003ccode\u003epush-X-X\u003c/code\u003e classes:\n\u003cpre\u003e\n\u0026lt;div class=\"grid\"\u0026gt;\n  \u0026lt;div class=\"col-1-3 push-1-3\"\u0026gt;\n  \u0026lt;/div\u0026gt;\n  \u0026lt;div class=\"col-1-3 \"\u0026gt;\n  \u0026lt;/div\u0026gt;\n\u0026lt;/div\u0026gt;\n\u003c/pre\u003e\n\u003c/p\u003e\n\n\u003ch3\u003eMobile\u003c/h3\u003e\n\u003cp\u003eIf you don't want to stack all columns on mobile and tablet you can simply add a extra class to each column:\n\u003cpre\u003e\n\u0026lt;div class=\"grid\"\u0026gt;\n  \u0026lt;div class=\"col-1-3 mobile-col-1-2\"\u0026gt;\n  \u0026lt;/div\u0026gt;\n  \u0026lt;div class=\"col-1-3 mobile-col-1-2\"\u0026gt;\n  \u0026lt;/div\u0026gt;\n  \u0026lt;div class=\"col-1-3 hide-on-mobile\"\u0026gt;\n  \u0026lt;/div\u0026gt;\n\u0026lt;/div\u0026gt;\n\u003c/pre\u003e\nTo hide a element (column, div, a, etc.) on mobile and tablets you can add the class \u003ccode\u003ehide-on-mobile\u003c/code\u003e to it.\n\u003c/p\u003e\n\n\u003ch3\u003ePreview\u003c/h3\u003e\n\u003cp\u003eTo see the grid in action jump on over to the \u003ca href=\"http://thisisdallas.github.com/Simple-Grid/\" title=\"Simple Grid examples\"\u003eSimple Grid example page\u003c/a\u003e.\u003c/p\u003e\n\n\u003ch3\u003eCopyright \u0026 License\u003c/h3\u003e\n\n\u003cp\u003eCopyright (C) 2013 Dallas Bass - Released under the MIT License.\u003c/p\u003e\n\n\u003cp\u003ePermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\u003c/p\u003e\n\n\u003cp\u003eThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\u003c/p\u003e\n\n\u003cp\u003eTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FThisIsDallas%2FSimple-Grid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FThisIsDallas%2FSimple-Grid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FThisIsDallas%2FSimple-Grid/lists"}