+ 2

How do you align it with an actual mac on TextEdit?

<p align="center">...</p> doesn't work.

3rd Jun 2019, 5:26 PM
Rishan [da_coder, semi-active]
Rishan  [da_coder, semi-active] - avatar
11 Respuestas
+ 1
You can do it like this: <p style = "width: 100vw; text-align: center">...</p>
3rd Jun 2019, 6:03 PM
Airree
Airree - avatar
+ 1
Airree, it doesn't work
3rd Jun 2019, 6:34 PM
Rishan [da_coder, semi-active]
Rishan  [da_coder, semi-active] - avatar
+ 1
Maybe if I could see your code
3rd Jun 2019, 6:44 PM
Airree
Airree - avatar
+ 1
Sry I had to start over
3rd Jun 2019, 7:03 PM
Rishan [da_coder, semi-active]
Rishan  [da_coder, semi-active] - avatar
+ 1
I'll just include body tag
3rd Jun 2019, 7:03 PM
Rishan [da_coder, semi-active]
Rishan  [da_coder, semi-active] - avatar
+ 1
<body> <img src="kirby.jpg" height="150px" width="150px" alt=" " /> <p style = "width: 100vw; text align: center"> Huh, so you found me. </p> <p align="center"> But now I am gone... </p> <script> document.write(You took the wrong way.); </script> </body>
3rd Jun 2019, 7:12 PM
Rishan [da_coder, semi-active]
Rishan  [da_coder, semi-active] - avatar
+ 1
It doesn't work because you should've written "text-align" instead of "text align"
3rd Jun 2019, 7:14 PM
Airree
Airree - avatar
+ 1
That was just a mess up in typing the message
3rd Jun 2019, 7:16 PM
Rishan [da_coder, semi-active]
Rishan  [da_coder, semi-active] - avatar
+ 1
*error
3rd Jun 2019, 7:16 PM
Rishan [da_coder, semi-active]
Rishan  [da_coder, semi-active] - avatar
+ 1
I have a few problems with your code. 1. The align to center worked, so I don't know what's your problem 2. My method also worked, so I don't know what's your problem 3. You didn't use quotation marks for the document.write function, and that produced an error https://code.sololearn.com/Wty263KTJH5D/?ref=app
3rd Jun 2019, 7:22 PM
Airree
Airree - avatar
0
<p align="center">.....</p> Doesn't work??? Check your self again but if it you can use in CSS text-align: center;
3rd Jun 2019, 8:01 PM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar