CSS - 没有边距/填充的元素之间的边距?

标签 css margin

我一直在研究我自己的 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/

相关文章:

html - CSS3 过渡在流体宽度设计中创建间隙和重叠

Css float 调整布局

html - 为什么元素上的负底部边距会降低该元素父元素的高度?

css - Margin-Top 不适用于 span 元素?

css - 为什么我不能让 span 紧挨着一组图像排列?

html - 向下滚动后背景图像在 Chrome 中消失

html - 在浏览器中与在缓冲区中使用 Selenium 进行 headless 测试

javascript - 单击链接标题时显示空白

html - 无法删除 Bootstrap 导航栏的底部空间

php - 如何设置从第三方导入的内置评论框的样式?