wordpress - Woocommerce checkout decrease spaces between fields
问题描述
I have a woocommmerce store with a checkout where the fields have a lot of space between them. I would like to decrease the space through CSS. Can't find any information about this and I've tried many different codes found online, but they were too I guess.
解决方案
尽可能使用特定的选择器。
.woocommerce form p.form-row{
margin: 0 0 5px;
}
.woocommerce form p.form-row label{
margin: 0 0 5px;
}
最后一个值是顶部和底部边距,因此更小 = 更靠近。
推荐阅读
- r - R:循环一个序列并将其放入单独的列表中
- github - PySpark:如何将 GitHub 库导入 Databricks?
- django - Django - 密码验证帮助文本翻译
- node.js - 无法使用 mongoose 连接到 mongodb atlas
- vb.net - Visual Studio 在使用 Crystal 报表时抛出 System.Runtime.InteropServices.COMException: 'Exception from HRESULT: 0x800A5023'
- php - pChart 在主机服务器上工作,但在 XAMPP 上工作:未捕获的错误:不能将字符串偏移量用作数组
- svg - 如何给 SVG 文档起一个标题,其工作方式与
element in the <head> of an HTML document?</h1> <div id="body"><p>In an HTML document <code><head></code>, the <code><title></code> element declares the human-readab - sql - 不相关的表格和时间间隔
- r - R:如何在 CRAN 的小插图中包含静态 pdf?
- javascript - Webpack 4 未创建捆绑文件