0

How do I make the text goes center of the screen automatically? I mean a responsive webpage?

20th Jul 2016, 5:29 PM
Azwan Abdullah
Azwan Abdullah - avatar
2 Respostas
+ 1
As far as CSS is concerned, if you want text to appear fixed at the center of a window, you could make a parent that is the entire window's size and make the text positioned absolute to this. Like: .myclass { position: fixed; height: 100%; width: 100%; text-align: center; } .myclass2 { position: absolute; top: 50%; } But I might be misunderstanding your question.
21st Jul 2016, 12:39 PM
Brian
0
It's easier to do it on HTML.
22nd Jul 2016, 11:38 PM
codemies
codemies - avatar