+ 5

Can anyone explain how come the text is not aligned in the center?

https://code.sololearn.com/W6KqW3egOqCu/?ref=app

17th Feb 2019, 9:27 AM
Cameron
Cameron - avatar
3 Answers
17th Feb 2019, 9:38 AM
ElizabethđŸ’–â€đŸ’»
ElizabethđŸ’–â€đŸ’» - avatar
+ 6
ElizabethđŸ‘©â€đŸ’» forgetting the equal sign is something I over looked. Thank you
17th Feb 2019, 9:45 AM
Cameron
Cameron - avatar
+ 1
What I would do to center this is give the p tag an id or a class. Let's say I give it an id attribute: <p id='center'> within cells </p> Then, in a CSS file, I would target this id and then apply centering to it: #center { text-align: center; } That code will horizontally center your text. Hope that helps!
17th Feb 2019, 8:29 PM
Joe DeSoto
Joe DeSoto - avatar