+ 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 odpowiedzi
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