according to W3Schools
The
align
attribute is not supported in HTML5. Use CSS instead.
I am wondering how on earth, can I simply align two paragraphs within one line.
I am open to flex box solutions, but, I do not need a third dummy paragraph to behave as a starting point. Also, producing a row and columns seems to overcomplicating this ?simple? task?
This is what I have come up with so far, thus text-align
does nothing...:
p {
display: inline-block;
}
.center {
text-align: center;
}
.right {
text-align: right;
}
<div class="container">
<p class="center">Center</p>
<p class="right">Right</p>
</div>