+ 1
Webpage Styling
When the text is too long to fit in one line, it wraps but the remainder doesn't align to center. can i fix this without writing a whole div element for "one" small element or is this unavoidable? How do I style text to wrap down center instead of to left?
6 ответов
+ 5
Hello, Joshua Morgan !
Try this solution, I think it will help you
<style>
p {
word-wrap:break-word;
text-align:center;
}
</style>
<p>Blue bird</p>
https://www.sololearn.com/learn/CSS/1090/?ref=app
+ 4
p {
text-align: center;
}
0
Yes! Thank you. :)
0
text-align:center;
0
I would go with word wrap
0
text-align center