我想除去白色空間是我的瓦片像下面的圖片之間:刪除空白引導
這是我目前有:
這裏是第二張照片的標記,這是目前我所擁有的:
CSS
.mainbody-section {
padding-top: 30px;
padding-bottom: 30px;
}
/* Overlay text */
.module {
background-color: lightgray;
background-attachment: fixed;
/*width: 400px;*/
height: 300px;
position: relative;
overflow: hidden;
margin: 20px;
}
.module > header {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 20px 10px;
background: inherit;
background-attachment: fixed;
overflow: hidden;
}
.module > header::before {
content: "";
position: absolute;
top: -20px;
left: 0;
width: 200%;
height: 200%;
background: inherit;
background-attachment: fixed;
-webkit-filter: blur(4px);
filter: blur(4px);
}
.module > header::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.25);
}
.module > header > h1 {
margin: 0;
color: white;
position: relative;
z-index: 1;
}
.module > header > h2 {
margin: 0;
color: white;
position: relative;
z-index: 1;
}
* {
box-sizing: border-box;
}
HTML
<div class="mainbody-section text-center" style="padding-left: 50px; padding-right: 50px;">
<div class="row">
<div class="col-lg-2 col-md-4 col-sm-6 hvr-wobble-to-bottom-right">
<div class="module">
<header>
<h1 style="font-size: 20px; text-align: center;">Test
</h1>
<h2 style="font-size: 13px; text-align: center;"> This is some sub-text
</h2>
</header>
</div>
</div>
<div class="col-lg-2 col-md-4 col-sm-6 hvr-wobble-to-bottom-right">
<div class="module">
<header>
<h1 style="font-size: 20px; text-align: center;">Test
</h1>
<h2 style="font-size: 13px; text-align: center;"> This is some sub-text
</h2>
</header>
</div>
</div>
<div class="col-lg-2 col-md-4 col-sm-6 hvr-wobble-to-bottom-right">
<div class="module">
<header>
<h1 style="font-size: 20px; text-align: center;">Test
</h1>
<h2 style="font-size: 13px; text-align: center;"> This is some sub-text
</h2>
</header>
</div>
</div>
</div>
可有人請諮詢我在地清除瓷磚之間所有的白色空間?
感謝
你有沒有試圖刪除從''margin' .module'? –
是的,我有。這從頂部和底部,而不是側面刪除它... – Code