0

I m learning HTML. The align="center" is not working.wht to do?

i did it like this <p align="center"> hello i m........</p>

22nd Jul 2017, 4:28 PM
rishiraj deori
rishiraj deori - avatar
15 Respuestas
+ 4
'align' attribute is deprecated in Html5, but should works anyway, as Html is permissive, and browsers known how to correct it ^^ Same behaviour need to be done trough css: <p style="text-align:center;"> But are you sure of what you are done? Because it's very surprising that your code extract doesn't align its content to center (of itself: what's the context of your attempt?)
22nd Jul 2017, 4:33 PM
visph
visph - avatar
+ 3
Like this? https://code.sololearn.com/WU9e0F4DRKXJ/?ref=app Is it still not working?
23rd Jul 2017, 5:45 AM
visph
visph - avatar
+ 3
What do you use to open it? Sololearn app? Sololearn website?
23rd Jul 2017, 7:33 AM
visph
visph - avatar
+ 3
What <i>...</i>? You doesn't talk about it before? @@
23rd Jul 2017, 7:34 AM
visph
visph - avatar
+ 3
And so, how can you said that mine code snippet doesn't work? ... and what and how did you put in italics?
23rd Jul 2017, 7:36 AM
visph
visph - avatar
+ 2
Is it still not working?
23rd Jul 2017, 5:47 AM
visph
visph - avatar
0
i m doing it just like it told in sololearn.i m just writing "this is a line of text" in content
23rd Jul 2017, 3:43 AM
rishiraj deori
rishiraj deori - avatar
0
yes exactly like this
23rd Jul 2017, 5:46 AM
rishiraj deori
rishiraj deori - avatar
0
no :(
23rd Jul 2017, 7:31 AM
rishiraj deori
rishiraj deori - avatar
0
wow.i figured the problem:D
23rd Jul 2017, 7:32 AM
rishiraj deori
rishiraj deori - avatar
0
the <i>......</i> was causing the problem not it works
23rd Jul 2017, 7:33 AM
rishiraj deori
rishiraj deori - avatar
0
now*. thank u very much for helping
23rd Jul 2017, 7:33 AM
rishiraj deori
rishiraj deori - avatar
0
i made it in italics i didnt knew that will cause a problem :/
23rd Jul 2017, 7:35 AM
rishiraj deori
rishiraj deori - avatar
0
ur code worked
23rd Jul 2017, 7:37 AM
rishiraj deori
rishiraj deori - avatar
0
nvm the prob is fixed now
23rd Jul 2017, 7:37 AM
rishiraj deori
rishiraj deori - avatar