Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0301· openaiHugging Face Suzhen/CodeChat

how to justify text in css?

  1. User

    how to justify text in css?

  2. Assistant

    To justify text in CSS, you can use the text-align property.

    1. Select the element that you want to justify the text within.
    2. 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.