Can't center text after setting max-width

I wanted to center some text with them having a max-width of 65 characters but when I set max-width: 65; my text can't be centered and they go to the left of the screen
* {
padding: 0;
margin: 0;
font-family: "Courier New", monospace;
text-align: center;
background-color: black;
color: white;
}

h1 {
margin: 3rem 0;
}

p {
max-width: 65ch;
text-align: center;
}
* {
padding: 0;
margin: 0;
font-family: "Courier New", monospace;
text-align: center;
background-color: black;
color: white;
}

h1 {
margin: 3rem 0;
}

p {
max-width: 65ch;
text-align: center;
}
2 Replies
Mannix
Mannix7mo ago
add margin-inline:auto; to the p
Zed
ZedOP7mo ago
wait lemme do it woahhhhh btw what happened actually?
Want results from more Discord servers?
Add your server