私のボタンの下にボタンとチェックボックスを固定する方法を教えてください。私はスクロール可能な仕事を得ることができます。私の問題はボタンとチェックボックスが底に固定されていないことです。DIVの下部にボタンとチェックボックスを固定する方法
したがって、divでテキストを設定すると、テキストがボタンとチェックボックスでオーバーフローしますが、テキストをスクロール可能な状態にしてボタンやチェックボックスをオーバーフローさせないようにするにはどうすればよいですか?
#chk {
float: left
}
.btn {
float: right
}
<div style="height:40%; overflow: scroll;" class="panel" id="panel">
<!--inner part of the div which contains the text (scrollable is applied here) -->
<input id="chk" type="checkbox" /> <!-- should be on the left bottom of the div -->
<button type="submit" class="btn">Button</button> <!--should be on the right bottom of the div (opposite the checkbox)-->
</div>
試したCSSを含めてください。 –
@JoeLissnerボタンとチェックボックスにCSSを追加しました – LearnLaravel