首页 > 解决方案 > 在 Wordpress/Primer/Mins/Elementor 网站中使用 CSS 制作标题全宽

问题描述

我将 Wordpress 与父主题 Primer、子主题 Mins 和 Elementor 页面构建器一起使用。我想使用 CSS 使标题全宽。这是我现在拥有的:

#masthead { margin: 0; padding: 0; width: 100%; }

我似乎无法删除标题右侧的边距。该网站是:

http://coolco.samhillmusic.com/

感谢任何帮助!谢谢

标签: csswordpressheaderelementorfull-width

解决方案


I see in at some point of your css a max-width: 1100px, to overwrite it, you can add a max-width to your #masthead - look the example below :)

#masthead {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: unset;
}

推荐阅读