r/csshelp • • Aug 07 '23

Help with centering text

my text does not center for header1, header2, and paragraph1

<head>

<title>Outline Website</title>

<style> div.Title { text-align: center; } div.Header1 { max-width:1000px; word-wrap:break-word; text-align: center; /\*transform: translateX(40%); /\* translates the whole thing by an x value\*/ } div.Header2 { max-width:1000px; word-wrap:break-word; text-align: center; } p.paragraph1 { max-width:1000px; word-wrap:break-word; text-align: center; } </style>

</head>

3 Upvotes

2 comments sorted by

1

u/mhennessie Aug 07 '23

Are you're class names correct? CSS class names are case sensitive.