+ 2
How do you align it with an actual mac on TextEdit?
<p align="center">...</p> doesn't work.
11 Answers
+ 1
You can do it like this:
<p style = "width: 100vw; text-align: center">...</p>
+ 1
Airree, it doesn't work
+ 1
Maybe if I could see your code
+ 1
Sry I had to start over
+ 1
I'll just include body tag
+ 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>
+ 1
It doesn't work because you should've written "text-align" instead of "text align"
+ 1
That was just a mess up in typing the message
+ 1
*error
+ 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
0
<p align="center">.....</p>
Doesn't work???
Check your self again but if it you can use in CSS text-align: center;