လုပ်နည်း - ကော်လံ သုံးခု အပြင်အဆင်
CSS ဖြင့် ကော်လံ 3 ကော်လံ အပြင်အဆင် ဇယားကွက် ဖန်တီးနည်းကို လေ့လာပါ။
ကော်လံသုံးခုအပြင်အဆင် ဖန်တီးနည်း
အဆင့် 1) HTML ကိုထည့်ပါ
ဥပမာ
<div class="row">
<div class="column"></div>
<div
class="column"></div>
<div
class="column"></div>
</div>
အဆင့် 2) CSS ကိုထည့်ပါ
ဤဥပမာတွင်၊ ကျွန်ုပ်တို့သည် တူညီသော ကော်လံ သုံးခုကို ဖန်တီးပါမည် ။
ဥပမာ
.column {
float: left;
width: 33.33%;
}
/* Clear floats after the
columns */
.row:after {
content: "";
display: table;
clear: both;
}
ဤဥပမာတွင်၊ မညီမျှသော ကော်လံ သုံးခုကို ဖန်တီးပါမည် ။
ဥပမာ
.column {
float: left;
}
.left, .right {
width: 25%;
}
.middle {
width: 50%;
}
ဤနမူနာတွင်၊ ကျွန်ုပ်တို့သည် တုံ့ပြန်မှုရှိသော ကော်လံ ၃ ခုကို ဖန်တီးပါမည် ။
ဥပမာ
/* Responsive layout - when the screen is less than 600px wide, make the
three
columns stack on top of each other instead of next to each other */
@media
screen and (max-width: 600px) {
.column {
width: 100%;
}
}
အကြံပြုချက်- ဝဘ်ဆိုဒ်အပြင်အဆင်များအကြောင်း ပိုမိုလေ့လာရန် ကျွန်ုပ်တို့၏ CSS ဝဘ်ဆိုဒ် အပြင်အဆင် ကျူတိုရီရယ်သို့ သွားပါ ။
အကြံပြုချက်- တုံ့ပြန်မှုရှိသော ဝဘ်ဒီဇိုင်းနှင့် ဂရစ်များအကြောင်း ပိုမိုလေ့လာရန် ကျွန်ုပ်တို့၏ CSS တုံ့ပြန်မှု ဝဘ်ဒီဇိုင်း ကျူတိုရီရယ်သို့ သွားပါ ။