width
をアブソリュートに設定し、CSSスタイルシートにposition:absolute;
を設定すると、3つのブートストラップ列のボタンとして使用する<a href>
タグを取得する際に問題が発生します。なぜブートストラップカラムの中に "a"タグを置くことができないのですか?
私はここで何が欠けているのか誰にでも見られますか?ここに私がこれまで持っているものがあります。
私は現在、何を持っている:
.outer-row {
width: 100%;
text-align: center;
letter-spacing: 1px;
position: relative;
height: 300px;
margin-top: 20px;
}
.dark-bar-option-col {
padding: 5px;
position: relative;
height: 100%;
align-content: center!important;
text-align: center!important;
}
.dark-bar-option-col a {
padding: 15px;
background-color: #3A83F3;
color: white;
bottom: 0;
font-size: 12px;
display: block;
text-align: center;
position: absolute;
margin: 20px;
width: 200px;
}
.dark-bar-option-col a:hover {
background-color: #0D5C9E;
text-decoration: none;
}
.dark-bar-option-col:nth-child(2) {
border-left: solid;
border-right: solid;
border-color: #E0DDDD;
border-width: 3px;
}
<div>
<div class="row">
<div class="col-md-12 outer-row">
<div class="col-md-4 dark-bar-option-col">
<a href="#">Find out more</a>
</div>
<div class="col-md-4 dark-bar-option-col">
<a href="#">This is a button</a>
</div>
<div class="col-md-4 dark-bar-option-col">
<a href="#">This is a button</a>
</div>
</div>
</div>
</div>