ခေါင်းစီး
နာကျင်မှုကိုယ်တိုင်က ချစ်ခြင်းမေတ္တာ သို့မဟုတ် ချည်နှောင်ခြင်းပင် ဖြစ်သည်။
CSS ကို အသုံးပြု၍ ပွင့်လင်းမြင်သာသော နောက်ခံစာသားဖြင့် ပုံတစ်ပုံကို ဖန်တီးနည်းကို လေ့လာပါ။
နာကျင်မှုကိုယ်တိုင်က ချစ်ခြင်းမေတ္တာ သို့မဟုတ် ချည်နှောင်ခြင်းပင် ဖြစ်သည်။ သင့်အိမ်ထောင်ဖက်သည် များသောအားဖြင့် အရာနှစ်ခုကို ယူဆောင်သွားတတ်သောကြောင့် အကြောင်းရင်းကောင်းတစ်ခုဖြင့် သူ့ကို သတိထားရန် လစ်လျူမရှုပါနှင့်။ လူလိမ်ကို နိုင်ငံတော်ပုန်ကန်မှုဖြင့် နှိပ်စက်ညှဉ်းပန်းသောအခါ အလေးချိန်များကို သူဦးစွာ ကိုင်တွယ်သည်။
<div class="container">
<img src="notebook.jpg"
alt="Notebook" style="width:100%;">
<div class="content">
<h1>Heading</h1>
<p>Lorem ipsum..</p>
</div>
</div>
.container {
position: relative;
max-width: 800px;
/* Maximum width */
margin: 0 auto; /* Center it */
}
.container .content {
position: absolute; /* Position the background text */
bottom: 0;
/* At the bottom. Use top:0 to append it to the top */
background:
rgb(0, 0, 0); /* Fallback color */
background: rgba(0, 0, 0, 0.5);
/* Black background with 0.5 opacity */
color: #f1f1f1;
/* Grey text */
width: 100%; /* Full width */
padding: 20px;
/* Some padding */
}