HomeОбразованиеRelated VideosMore From: Online Tutorials

CSS Center text Horizontal and Vertical

132 ratings | 13476 views
Please LIKE our NEW Facebook page for daily updates... https://www.facebook.com/Online-Tutorial-Html-Css-JQuery-Photoshop-1807958766120070/
Html code for embedding videos on your blog
Text Comments (6)
مهند الحطامي (4 months ago)
شكراً 👍 كنت ابحث عنه
Melih Bağçeli (8 months ago)
I just started to watch your all videos I will add the code here <!DOCTYPE html> <html> <head> <title>Text Center</title> <meta charset="utf-8"> <style type="text/css"> body{ margin: 0px; padding: 0px; background-color: red; } h1{ font-size: 5em; margin: 0px; padding: 0px; background-color: yellow; font-family: 'arial'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); } </style> </head> <body> <h1>TEST</h1> </body> </html>
яεмιlια (1 year ago)
thanks, it worked for me.
Niket Pathak (1 year ago)
This is a nice tutorial. Although, I cannot see you using flexbox for this. I think its much more simpler using the flexbox layout. For those interested in the how and what, checkout http://digitalfortress.tech/tricks/13-killer-ways-to-center-elements-with-css/
barlew (1 year ago)
i love u man i love all your tutorials ... just found you and im so glad your uploading things <3
Online Tutorials (1 year ago)
thanks bro :) plz keep in touch for daily videos

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.