Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: Trouble with tables, joomla 2.5

Trouble with tables, joomla 2.5 9 months 1 week ago #54337

  • johngray
  • johngray's Avatar
  • OFFLINE
  • OSTar
  • Posts: 112
  • Karma: 0
Hi there,
I'm having trouble with the spacing in my table. The first screenshot is of the joomla view. The second screenshot is what it looks like on the screen. My question is: how do I get the text to line up (on the top of the boxes) so it looks clean when I publish it?
Thanks!
Please become a member of OSTraining to reply to this post.

Trouble with tables, joomla 2.5 9 months 1 week ago #54340

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
Tables have an attribute for vertical alignment.

Add valign="top" to the table rows or the the individual cells. Everything will be moved to the top of the cell.
(td valign="top"> table content here </td>

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

Trouble with tables, joomla 2.5 9 months 1 week ago #54359

  • johngray
  • johngray's Avatar
  • OFFLINE
  • OSTar
  • Posts: 112
  • Karma: 0
Need more help with this one.

Here's the code, did I put it in the right place?

<table style="width: 557px; height: 637px;" border="0" cellpadding="4" cellspacing="2">
<tbody>
<tr>
<td valign="top"></td>
</tr>
<tr>
<td><strong>Evaluation of Web Documents</strong>
</td>
<td><strong>How to Interpret the Basics</strong>
</td>
</tr>

lots of code here and then the end


</ul>
</td>
<td> <strong>Coverage:</strong>
<ul>
<li>If page requires special software to view theinformation, how much are you missing if you don't have the software?</li>
<li>Is it free or is there a fee to obtain the information?</li>
<li>Is there an option for text only, or frames, or a suggested browser for better viewing?</li>
</ul>
</td>
</tr>
</tbody>
</table><br/>
Please become a member of OSTraining to reply to this post.

Trouble with tables, joomla 2.5 9 months 1 week ago #54378

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
More like this:
<table style="width: 557px; height: 637px;" border="1" cellpadding="4" cellspacing="2">
<tbody>

<tr>
<td valign="top" colspan="2">This cell spans 2 columns</td>
</tr>

<tr>
<td valign="top"><strong>Evaluation of Web Documents</strong>This cell spans only one column</td>
<td valign="top"><strong>How to Interpret the Basics</strong>This cell spans only one column</td>
</tr>

<tr>
		<td valign="top">&nbsp;<strong>Coverage:</strong></td>
		<td valign=top> This is empty except for this sentence</td>
</tr>


</tbody>
</table><br/>
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.