ringa_lee
To center text, use: text-align: center; Just add it to the P tag.
text-align: center;
Because <p></p> is a block-level element
<p></p>
I guess you have a conflict with the text-align above. The p above contains the p tag
text-align
Just use text-align:center and put it after the font-size attribute
text-align:center
font-size
To center the text, just add text-align:center on P. But if you want the P label to be centered, give p a fixed width margin: 0 auto;
To center text, use:
text-align: center;
Just add it to the P tag.Because
<p></p>
is a block-level elementI guess you have a conflict with the
text-align
above. The p above contains the p tagJust use
text-align:center
and put it after thefont-size
attributeTo center the text, just add text-align:center on P. But if you want the P label to be centered, give p a fixed width margin: 0 auto;