Post content in a box

  • fathima

    #7062

    I want to put certain content of my post in a box like thing and give a background color. Can Table be used with 1 row, 1 column or is there any option?

    Admin

    Syahir Hakim

    #36727

    Just wrap it in a <div> element, and then style that element to have a background using CSS. Use tables only for tabulated data, not for presentation.

    fathima

    #36728

    I am sorry. I am poor in coding. Kindly explain in detail.

    Anonymous

    #36729

    Switch to text/HTML mode in post editor and use the div tag like this,

    <div class="bg-colour-red">Put some content here. This div which will have red background.

    blah blah blah

    </div>

    And, this to Custom CSS

    .bg-colour-red {
    background: #FF0000;
    }

    Quote:
    I am sorry. I am poor in coding.

    Start here – https://forum.graphene-theme.com/graphene-support/beginners-resources-possible-sticky

Viewing 4 posts - 1 through 4 (of 4 total)

  • You must be logged in to reply to this topic.
Graphene Themes Forum