我一直在研究我自己的 CSS 网格并找到了这个网站:
http://demo.select-themes.com/stockholm1/four-column-gallery/
有人知道它是如何实现的吗?基本上 Portfolio 元素之间有空格,但没有边距、填充以及我能想到的任何内容:
<article class="mix portfolio_category_2 mix_all" style=" "><div class="image_holder standard_hover"><span class="image">(...)</article>
2% margin (not sure where it comes from!)
<article class="mix portfolio_category_2 mix_all" style=" "><div class="image_holder standard_hover"><span class="image">(...)</article>
我认为这是 Bootstrap,但毕竟 Bootstrap 的网格似乎有边距......这些元素只有底部边距,但没有右/左边距。怎么做到的?
最佳答案
这是容器样式的规则:
.projects_holder {
...
text-align: justify;
...
}
尝试在开发控制台中删除它。
关于CSS - 没有边距/填充的元素之间的边距?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26452160/