css - How to remove padding for mobile devices on WordPress
问题描述
I'm new to WordPress and CSS; currently creating a WordPress site and on the last stretch. I need to figure out a way to override the current padding on desktop and laptop sized browsers, as the elements are stuck in the middle with padding on either side on mobile devices.
I've tried to create my own CSS but it's not working (im rubbish) so I'm hoping some experts can help. I tried this below-
@media all and (max-width : 780px) {
.column{
padding-left:0px;
padding-right:0px;
}
}
The webpage I'm testing it on is https://www.xordium.co.uk/your-cloud-journey/
Thanks!
解决方案
@media only screen and (max-width: 600px) {
.vc_custom_1528804063483 {
padding-left: 20px !important;
}
}
只需将其放入您的 style.css 文件中,宽度为您设置的宽度,例如我写的 600。
希望这对你有用。
推荐阅读
- vb.net - 使用组合框的集合来更改 Enabled 属性
- javascript - Litelement 将对象作为 html 属性传递
- docker - 使用 docker 在分布式模式下运行 karate-gatling 测试
- reactjs - React 测试库:对象作为 React 子级无效
- php - 椭球面积函数没有给出正确的结果
- html - v-dialog vuetify vueJS 中的高度
- .net - 为什么选择查询会陷入死锁?
- c++ - 未定义的参考 C++ 和 openMPI
- javascript - 如何通过控制台接收数据中的数据 - VueJs?
- linux - 将目录上传到 aws EC2 linux 服务器失败