လုပ်နည်း - Four Column Layout
CSS ဖြင့် ကော်လံ 4 ကွက်အပြင်ကွက် ဖန်တီးနည်းကို လေ့လာပါ။
Column Layout လေးခုဖန်တီးနည်း
အဆင့် 1) HTML ကိုထည့်ပါ
ဥပမာ
<div class="row">
<div class="column"></div>
<div
class="column"></div>
<div
class="column"></div>
<div
class="column"></div>
</div>
အဆင့် 2) CSS ကိုထည့်ပါ
ဤဥပမာတွင်၊ ကျွန်ုပ်တို့သည် ကော်လံ လေးခုကို ဖန်တီးပါမည်-
ဥပမာ
.column {
float: left;
width: 25%;
}
/* Clear floats after the
columns */
.row:after {
content: "";
display: table;
clear: both;
}
ဤဥပမာတွင်၊ ကျွန်ုပ်တို့သည် တုံ့ပြန်မှု ရှိသော ကော်လံလေးခုကို ဖန်တီးပေးမည်-
ဥပမာ
/* 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 တုံ့ပြန်မှု ဝဘ်ဒီဇိုင်း ကျူတိုရီရယ်သို့ သွားပါ ။