Create a Two Column Layout in a Joomla Article Using JCE |
| April 7, 2011 |
One of our students was wondering how to create a two column layout in a single Joomla article. We offered to create this tutorial for her. This tutorial will show you step-by-step how to create a two column layout in a single Joomla article using JCE, a WYSIWYG editor. The tutorial will not use any tables which are not recommended as they can become quite messy. Install JCEIf you haven't done so already, please install JCE. You can find the how to install JCE tutorial here. Once you've installed JCE, go to the article for which you want two columns. Insert Divs![]() Click the Edit Code button. ![]() Insert an opening and closing div tags around each part that you want to be a column. You can see those tags circled in the image above. Once finished, Update Style First Column with JCE's Built-in CSS Styling![]() Highlight the part that you want to be the first column and then click the Edit CSS Style button. ![]() Box >> Width 40% >> Float left >> Margin >> Un-check Same for all >> RIght 25 pixels >> Update Style Second Column with JCE's Built-in CSS Styling![]() Highlight the second column and then click the Edit CSS Style button. ![]() Box >> Width 40% >> Float left >> Update Apply![]() Apply your changes and then preview the article in the front end. You can adjust the widths and margins to your liking.
|
Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.
Copyright © 2012 Open Source Training, LLC. All rights reserved.
Comments
Just type them in :)
Kind regards,
Nick
i want to make a custom module with two columns but when i put the float option the style changes and i cant use it ..
can you suggest a solution ?? thanks...
You might want to double check on that. Floating something shouldn't cause any styles to change. Perhaps you made a mistake on accident somewhere.
Kind regards,
Nick
Kind regards,
Nick
RSS feed for comments to this post