最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

css - How to remove padding from left&right side

programmeradmin1浏览0评论

Im trying to remove the padding from left&right side by following custom css but doenst work

#main.site-main,.container, .site-content{
    margin: 0;
    padding: 0em;
}

Please advise how to solve this. The website is www.taro0329

Thank you

Im trying to remove the padding from left&right side by following custom css but doenst work

#main.site-main,.container, .site-content{
    margin: 0;
    padding: 0em;
}

Please advise how to solve this. The website is www.taro0329

Thank you

Share Improve this question asked Sep 27, 2019 at 8:08 TreyTrey 31 bronze badge 8
  • I have checked your site your I can't found padding prnt.sc/pbnc1g – Dharmishtha Patel Commented Sep 27, 2019 at 8:56
  • Thank you for your support. So means I can not remove them? Im using Vantage template – Trey Commented Sep 27, 2019 at 9:02
  • can you share your link – Dharmishtha Patel Commented Sep 27, 2019 at 9:07
  • I just want to remove the white blank on the left and right side – Trey Commented Sep 27, 2019 at 9:08
  • which one can you please share screen short – Dharmishtha Patel Commented Sep 27, 2019 at 9:09
 |  Show 3 more comments

1 Answer 1

Reset to default 0

Instead of setting up margin/padding. Try setting up max-width of full-container a <div> next to site-main:

body.responsive.layout-full #page-wrapper .full-container {
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
}

You can change max-width to your desired percentage value.

发布评论

评论列表(0)

  1. 暂无评论