admin管理员组文章数量:1425777
I am trying to create this very simple landing page on Wordpress using the basic theme but customizing my homepage. At first I tried through Visual Composer but then did so as well through the text classic editor directly in HTML, in both cases, my content is limited to a certain width of the page and I cannot get it to 100%. It would be great if I could get help in solving this and gegttig the content to use the full width of the page. Thank you for your help! My HTML code is as follows:
<div class="introrow">
<div class="introleft">TEXT
</div>
<div class="introright"><img src="..."></div>
</div>
My CSS is as follows:
.site-header, .site-footer, .entry-header {display:none!important;
}
h1:not(.site-title):before, h2:before { display:none!important;}
.introleft, .introright {
width: 50%!important;
float:left;
overflow:hidden;
}
.introrow {
width:100%!important;
}
.introright img{
margin:auto;
display:block;
width:100%!important;
height:auto;
}
.entry-content {
margin:0px!important;
padding:0px!important;
max-width:100%!important;
}
I am trying to create this very simple landing page on Wordpress using the basic theme but customizing my homepage. At first I tried through Visual Composer but then did so as well through the text classic editor directly in HTML, in both cases, my content is limited to a certain width of the page and I cannot get it to 100%. It would be great if I could get help in solving this and gegttig the content to use the full width of the page. Thank you for your help! My HTML code is as follows:
<div class="introrow">
<div class="introleft">TEXT
</div>
<div class="introright"><img src="..."></div>
</div>
My CSS is as follows:
.site-header, .site-footer, .entry-header {display:none!important;
}
h1:not(.site-title):before, h2:before { display:none!important;}
.introleft, .introright {
width: 50%!important;
float:left;
overflow:hidden;
}
.introrow {
width:100%!important;
}
.introright img{
margin:auto;
display:block;
width:100%!important;
height:auto;
}
.entry-content {
margin:0px!important;
padding:0px!important;
max-width:100%!important;
}
Share
Improve this question
asked May 29, 2019 at 17:13
EliottEliott
11 bronze badge
1 Answer
Reset to default 0Actually, it was a theme, issue, I just changed the theme to something more simple and it is now working. Hope this helps someone!
本文标签: cssWordpress default theme cannot get full page on entry content div
版权声明:本文标题:css - Wordpress default theme cannot get full page on entry content div 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745452974a2658972.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论