0
.list_of_groups
と.group_management
の2つの列を同じ高さにします。私はmargin: 0 auto
とheight: 100%
を使ってみました。変更はありません。第2列は常に第1列よりも背が高い。同じ高さ2列
どうすればいいですか?
#show_groups {
background-color: black;
border: 3px dashed red;
font-size: 1.4em;
}
#group_examiner {
width: 100%;
background-color: lightblue;
text-align: center;
}
#list_of_groups {
float: left;
width: 30%;
background-color: blue;
margin: 0 auto;
}
#group_management {
float: left;
width: 70%;
background-color: lightgreen;
margin: 0 auto;
}
#group_list {
width: 25%;
background-color: red;
float: left;
text-align: center;
margin-top: 5%;
margin-left: 5%;
}
#group_options {
width: 65%;
background-color: green;
float: left;
text-align: center;
margin-top: 5%;
margin-right: 5%;
}
<div id="show_groups">
<div id="group_examiner">first</div>
<div id="list_of_groups">second</div>
<div id="group_management">
<div id="group_list">third</div>
<div id="group_options">forth</div>
</div>
</div>
この質問は百万回を頼まれました。あなたはあなたが尋ねる前に検索しましたか? – tilz0R
Googleでこの質問のタイトルを検索しました。最初の結果が何だったか見てください;)https://css-tricks.com/fluid-width-equal-height-columns/。フレックスアプローチとテーブルアプローチについて詳しく説明します。 – WizardCoder