CSS এ alignment set করাটা একটু tricky মনে হতে পারে। 🥲 🥲 For example: কোনও block level element কে (suppose, h1) center এ আনার জন্য text-align : cent...
For further actions, you may consider blocking this person and/or reporting abuse
One more for centering both horizontally and vertically -
.centered{
height:100vh;//You can put any other value as height
display:grid;
place-items:center;
}
Very helpful.
very helpful...!❤
Thanks a lot.
very helpful
thanks its very helpful
thanks apu
Thanks a lot for this informative article, which we are bound to easily understand.
আমার মাথা এখনো ঘুরতেছে। তবে হেল্পফুল এই পোস্টটি। প্রয়োজনের সময় কিভাবে খুজে পাবো জানিনা। থ্যাংক ইউ ফর শেয়ার উইথ আস।
Bookmark it.
Thanks a ton for make it easy
thanks
Nice this content. helpful
Thanks
Thank you very much ma'am. I am a beginner on Web Development, and this thing was very difficult for me. Please make more articles about HTML and CSS so I can note them down. Thank you.
Very helpful and informative..
.content {
position: absolute;
left: 50%;
top: 50%;
text-align: center;
transform: translate(-50%, -50%);
}
Maam may I ask a question?
why are we aligning text in the center here? when we have position absolute top 50 and left 50%
I have just given a way to solve it. It may have many solutions. Feel free to use your comfort zone while code.