Can anyone tell me How can i bring the text in One line like Google? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can anyone tell me How can i bring the text in One line like Google?

https://code.sololearn.com/WMgIOW7kmptv/?ref=app

11th Jun 2017, 8:46 AM
Anubhav Bhatt
Anubhav Bhatt - avatar
3 Answers
+ 2
Don't use 'align' attribute on html elements, it's deprecated in Html5 ^^ You can simply add inlined display property at your css rules, as you use many <h1> elements for each letters: h1 { display:inline-block; } ... but you'll better should do adapt your html to use one <h1> element with <span>s embeded for each letters: <body style="text-align:center;"> <h1> <span class=one>G </span> <span class=two> O </span> <span class=three>O </span> <span class =four>G </span> <span class=five>L </span> <span class=six>E </span> </h1> </body> ( don't need of h1 css rule in this last case ^^ )
11th Jun 2017, 9:06 AM
visph
visph - avatar
+ 1
Thank You very much both of you.
11th Jun 2017, 9:31 AM
Anubhav Bhatt
Anubhav Bhatt - avatar
0
just add this to your css: h1{ display: inline; }
11th Jun 2017, 8:58 AM
Loai Hazima
Loai Hazima - avatar