-
AuthorPosts
-
pavit Moderator
pavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
March 25, 2016 at 9:13 pm #904833Hi 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
monalh Friendmonalh
- Join date:
- March 2012
- Posts:
- 68
- Downloads:
- 23
- Uploads:
- 21
- Thanks:
- 17
- Thanked:
- 1 times in 1 posts
March 25, 2016 at 10:56 pm #904836Hi,
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?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
March 26, 2016 at 5:42 am #904898Hi
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 user says Thank You to pavit for this useful post
AuthorPostsViewing 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.
Jump to forum