Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: Columns in posts and pages

Columns in posts and pages 1 year 3 weeks ago #44772

Hi, OSTraining friends,
I have a question about inserting columns in post or pages.

I've made a test adding columns with tables.
The test is here (two chess diagrams):
xadrezvalle.com.br/test-2-columns-page/

My question is if there is another way to make pages in two or more columns, or using tables is a good practice?
Thank you very much!
Adriano Valle
Please become a member of OSTraining to reply to this post.

Columns in posts and pages 1 year 3 weeks ago #44865

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
Hi Adriano,

There is nothing wrong with using tables. At times they can interfere with search engines, Especially if the entire page is built with tables within tables within tables.

There is an alternate way to make two columns on a page by creating <div> tags and aligning them properly either with inline styles or css.


<div style="float:left>This will be the left column</div>
<div style="float:right>This will be the rght column</div>

You can do it in your css style sheet and assign classes to your divs as well. You can always assign other details like the width, background or any other styles.


#leftcolumn {
float:left;
width:250px;

}
#rightcolumn {
float:right;
width:250px;
}

Check out our CSS course for some good CSS basics.

Cheers,
Ed
Please become a member of OSTraining to reply to this post.

Columns in posts and pages 1 year 3 weeks ago #44936

Thank you for the support, Ed!
For sure, I will check OSTraining CSS course.
I always used CSS following tutorials and now I need a deeper vision of this code.
At the same time, I am glad to know that table are not so antiquate and even recommended by W3C for certain uses.
I am not going to use big tables, but just the feature of inserting table in posts and pages of Tynimce plugin.
It is very useful create original layout's.
Best regards,
Adriano
Please become a member of OSTraining to reply to this post.

Columns in posts and pages 1 year 3 weeks ago #44974

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16816
  • Thank you received: 391
  • Karma: 56
Hi Adriano,

You're welcome! We;re glad to be of help! :)

Great! Sounds like a plan.

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Sign Up for OSTraining

Powered by Kunena Forum

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 2013 Open Source Training, LLC. All rights reserved.