[Resolved] Container around Paragraph or multiple paragraph together?

Home Forums Support [Resolved] Container around Paragraph or multiple paragraph together?

Home Forums Support Container around Paragraph or multiple paragraph together?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1056783
    Mahesh

    Hello,

    I want to know how to put a container around the below sample text

    Related Post:
    * Post 1
    * Post 2
    * Post 3

    Here is an example of a sample container (the grey one)
    https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRkiisl7VPBen90kpA4DCfTuSuQ5D2aN5LNBlqDobHCpZYOft7p

    #1056796
    David
    Staff
    Customer Support

    Hi there,

    you would need to use the text ( not visual ) editor and add some HTML like so:

    <div class="custom-container">
        <p>some content</p>
        <p>some content</p>
        <p>some content</p>
    </div>

    Then you can style it with CSS:

    .custom-container {
        background-color: #ddd;
        padding: 10px;
        box-sizing: border-box;
    }
    #1056843
    Mahesh

    Thanks. It works.

    #1057119
    David
    Staff
    Customer Support

    You’re welcome

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.