forked from suprb/Grid-A-Licious
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
suprb#4 I made a few changes to the script to make it more responsive by eliminating the JS 'width' and 'gutter' options, and fetching the information dynamically from CSS. Works with media queries too. CHANGES: - removed 'gutter' and 'width' options - script now fetches outer-width and margins from CSS and calculates grid dynamically. - accepts media queries. - example styling: .item { float: left; margin: 0 8px 24px; padding: 8px; width: 250px; } @media only screen and (max-width: 600px) { .item { width: 150px; } } This update to the script also resolves the other issues I've filed, btw.
- Loading branch information
1 parent
57f966c
commit bd2d170
Showing
1 changed file
with
70 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters