Skip to content

Instantly share code, notes, and snippets.

@nlebert-linux
Created November 19, 2014 20:36
Show Gist options
  • Save nlebert-linux/cac7bed1e0157a6cf293 to your computer and use it in GitHub Desktop.
Save nlebert-linux/cac7bed1e0157a6cf293 to your computer and use it in GitHub Desktop.
Firefox Inline-Block Fix
#testimonials-wrapper {
margin: 0 -5px;
column-count: 4;
column-gap: 0;
column-fill: auto;
-webkit-column-count: 4;
-webkit-column-gap: 0;
-webkit-column-fill: auto;
-moz-column-count: 4;
-moz-column-gap: 0;
/* -moz-column-fill: auto; <---- This kills the -moz-inline-stack; */
}
@nlebert-linux
Copy link
Author

Trying to do a Pinterest-like layout for your website, but FF doesn't want to cooperate? add display: -moz-inline-stack; to your wrapper elements, and add the above to your wrapper. Remember to remove or don't add the -moz-column-fill: auto

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