I have to display some text contents in center (both horizontally and vertically )with some background color.
I have this code
"<h2 style="text-align:center; height:40px; background-color:#ABCDEF; color:#FFFCBA;"><span style="margin:auto;">USER LOGIN</span></h2>"
This making the text display in center horizontally but not vertically.
Any help will be great!
Thanks.