New answers tagged

4

Without seeing the page itself or any more code what I'm assume is that the text-align is being overridden by a more specific selector (either an #id or more specific class) You can read more about CSS specificity here: CSS-Tricks — Specifics on CSS Specificity To see exactly what CSS is affecting the element in question you can use the developer tools ...


1

I've figured out the issue: I'd applied some CSS to an outer container that seemed to be affecting the text - after removing this the text has started aligning properly. Thanks for your answers everyone. I hope this is an OK way for me to close the question.


1

I believe you are not identifying the class or paragraph you are using correctly. If you are using a class, put a dot in front of the name. .p9 { font-family: Roboto-light; text-align: center; color: #171717; font-size: 16px; font-weight: 300; line-height: 18px; } Aside from this I would strongly recommend changing editor.



Top 50 recent answers are included