gpt-3.5-turbo-0301· openai
Suzhen/CodeChat
how to justify text in css?
- User
how to justify text in css?
- Assistant
To justify text in CSS, you can use the text-align property.
- Select the element that you want to justify the text within.
- Set the text-align property to "justify".
Example:
p { text-align: justify; }This will horizontally align text to both the left and right edges of the container, creating a clean and professional look.