vue-masonry-css | Vuejs Masonry layout component powered by CSS, dependancy free | Frontend Framework library
kandi X-RAY | vue-masonry-css Summary
kandi X-RAY | vue-masonry-css Summary
A new masonry component powered by CSS to be fast loading and free of jQuery or other dependencies. Build specifically for Vue.js projects.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vue-masonry-css
vue-masonry-css Key Features
vue-masonry-css Examples and Code Snippets
Community Discussions
Trending Discussions on vue-masonry-css
QUESTION
I'm using VueJS to render dynamic components with variable height in a "masonry" layout, but this often produces ugly spaces when the heights don't line up perfectly. I was hoping to use a library to handle this, but, unfortunately, the tab component's width is variable as well, which means that none of them worked adequately.
I have:
- Vue 2.5
- Bootstrap 3 (locked, no way to upgrade to 4)
Example code (JSFiddle):
...ANSWER
Answered 2018-Jul-13 at 21:21I eventually solved this by switching to two fixed Bootstrap columns, which meant that I could fill each column with exactly half of the elements. Since the columns weren't stacked on top of each other, everything fit in nicely.
Here's an example for how to split an Array of elements to display into two:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vue-masonry-css
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page