html - 摆脱边距?

标签 html css padding margins skin

所以我正在为一个 friend 编写艺术网站期刊的代码,而我的一部分代码并没有去掉一些边距/填充,我担心它们可能是主站点正文编码的一部分,或者一些东西,所以这将是我需要手动覆盖的东西。 This is what I am working on.那个日记皮肤。底部的岩石应该与日志的边缘齐平,但无论我如何尝试,它们都不会按照我的意愿行事。

这是我到目前为止的编码,不是很多:

<div class="body">
    <div class="header"></div>
        <div class="contentholder"></div><div class="rockfooter"></div>  
</div>

还有:

.gr-body {
background: url(http://orig14.deviantart.net/8b57/f/2016/279/f/5/frontpagebackground_by_wulfghast-dak5apt.jpg);
background-size: 100%;
background-repeat: no-repeat;
background-color: #1c1119;
color: #545454; }

.header {
background-image: url(http://s10.postimg.org/bvl7xjjbd/branchborder.png);
background-position: top center;
background-repeat: no-repeat;
background-size: contain;
 margin-left: auto;
margin-right: auto;
margin-top: 20%;
position: relative;
z-index: 2;
height: 873px;
width: 74%;
display: block; }

.contentholder {
width: 68%;
margin-left: auto;
margin-right: auto;
margin-top: -800px;
-moz-box-shadow: 0 0 20px 5px #0a0a0a;
-webkit-box-shadow: 0 0 20px 5px #0a0a0a;
box-shadow: 0 0 20px 5px #0a0a0a;
background-color: #50463b;
position: relative;
z-index: 1;
display: block; }

.rockfooter {
background: url(http://s17.postimg.org/is79jxd3z/footer3_by_wulfghast_dakd92b_1.png);
height: 1000px;
width: 100%;
background-position: bottom;
background-repeat: no-repeat;
background-size: contain;
margin-left: auto;
margin-right: auto;
margin-top: -985px;
position: relative;
z-index: 4; }

.bottom {
display: none; }

最佳答案

在您分享的那个特定页面上,您的摇滚

<div class=body>

在一个

里面
<div class=text>

周围有内边距。

看看你是否不能去掉那个填充物,它会让它与两侧齐平。

关于html - 摆脱边距?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40165554/

相关文章:

ios - 如何使用 API 调用 Ionic 上的数据

javascript - ICE 失败,您的 TURN 服务器似乎已损坏,请参阅 :webrtc for more details

html - 溢出:在我的响应式菜单上滚动不起作用。该怎么办?

html - 文本框内的填充在 Internet Explorer 中无法正确显示

html - FancyBox 填充(顶部和底部)

javascript - 在 HTML5 Canvas 中创建带有碎片的方格板

javascript - Medium.js 不工作 - 'Medium is not defined'

使用变换 : rotate 时悬停的 CSS 动画停留在最后一个关键帧

javascript - Lightbox2:如何在 "EDIT"和 "lb-prev"之间添加一个 "lb-next"<a>?

c - C 中结构中的填充量是依赖于编译器还是定义明确?