Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • pavit Moderator
    #904833

    Hi there

    You can create custom divs into your custom.css file

    add this to the css

    #article-left {
        float:left;
        width:50%;
        overflow:hidden;
        padding-right:10px;
    }
    #article-right {
        float:left;
        width:50%;
        overflow:hidden;
    }

    Then in your articles use this :

    <div id="wrapper">
    <div id="article-left"> some text some contentsome text some contentsome text some contentsome text some contentsome text some contentsome text some content</div>
    <div id="article-right"> some text some contentsome text some contentsome text some contentsome text some contentsome text some contentsome text some content</div>
    </div>

    In the image below the resulted article with 2 columns

    Hope can help


    1. Screenshot_63
    monalh Friend
    #904836

    Hi,
    Thank you for your help! It did the trick, but I have problems with "closing" the row, as the text that is below is getting into the right colomn. See attached photo: I want "DATA" in left column, "PHOTOS" in right column, and then should "ACHIEVEMENTS" appear underneath, in its own row. Any ideas?


    1. Skjermbilde-2016-03-25-kl.-23.52.47
    pavit Moderator
    #904898

    Hi

    You can add a new div class article-center with width=100% before the closing wrapper div tag

    #article-left {
        float:left;
        width:50%;
        overflow:hidden;
        padding-right:10px;
    }
    #article-right {
        float:left;
        width:50%;
        overflow:hidden;
    }
    #article-center {
        width:100%;
        overflow:hidden;
            text-align:center;
    }

    HTML will be .

    <div id="wrapper">
    <div id="article-left"> Your DATA content</div>
    <div id="article-right"> Your PHOTOS content </div>
    <div id="article-center"> Your ACHIEVEMENTS content</div>
    </div>

    1. Screenshot_65
Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  pavit 8 years, 8 months ago.

The topic ‘Create columns in article’ is closed to new replies.