我想將我的標題與我的容器底部對齊,在使用引導程序的wordpress站點中,如何執行此操作?將div中的文本以bootstrap3引導至bootom
我試着用積極的和相對定位打不過我越來越TXT對準所有LEF或在最高層..
這裏是我的代碼:
<div class="container-fluid pre-content-banner">
<div class="container">
<div class="intro-title bottom-aligned-text">
<h1><?php the_title(); ?></h1>
</div>
</div>
</div> <!-- end container fluid -->
CSS:
.pre-content-banner {
height: 300px;
background: white url("images/businessppl-bg.jpg") no-repeat center;
background-size: cover;
position: relative;
}
.intro-title {
position: relative;
bottom: 0;
left: 0;
}
我得到這個結果:
應該是'position:absolute'和父'position:relative' –