PDA

View Full Version : Need som HTML-suggestions


patricken
05-28-2002, 01:19 AM
Hello all!
I got stuck in ideas, maybe somone can help me out?

I use a newspost with ssi-calls to show the news.
Today I have 3 columns (3 categories) in one table, but that gives a pretty awful design when you have different number of posts in the categories.

How could I make all headlines always begin from the top of the coulmn, for instance:

Col1 Col2 Col2

xxx xxxx xxxx
xxxx xxxx
xxxx


Or is it impossiible with a simple table?
Do I have to use frames or is there an alternative method?

Cheers,
Patricken



All times are CST. < Prev. | P. 1 | Next >

nsr81
05-28-2002, 01:41 AM
Although can't say much whithout looking at how you are including your stuff. But here is an idea:

<table width="50%" border="2" cellspacing="1" cellpadding="5" bordercolor="#0000FF"> <tr> <td valign="top"> <table width="100%" border="1" cellspacing="1" cellpadding="1" bordercolor="#FF0000"> <tr> <th>Cat 1</th> </tr> <tr> <td>xxxx</td> </tr> <tr> <td>xxxx</td> </tr> <tr> <td>xxxx</td> </tr> </table> </td> <td valign="top"> <table width="100%" border="1" cellspacing="1" cellpadding="1" bordercolor="#FF0000"> <tr> <th>Cat 2</th> </tr> <tr> <td>xxxx</td> </tr> <tr> <td>xxxx</td> </tr> </table> </td> <td valign="top"> <table width="100%" border="1" cellspacing="1" cellpadding="1" bordercolor="#FF0000"> <tr> <th>Cat 3</th> </tr> <tr> <td>xxxx</td> </tr> </table> </td> </tr> </table>

Colors are used to distinguish between different tables. Here is the code:

<table width="50%" border="2" cellspacing="1" cellpadding="5" bordercolor="#0000FF">
<tr>
<td valign="top">
<table width="100%" border="1" cellspacing="1" cellpadding="1" bordercolor="#FF0000">
<tr>
<th>Cat 1</th>
</tr>
<tr>
<td>xxxx</td>
</tr>
<tr>
<td>xxxx</td>
</tr>
<tr>
<td>xxxx</td>
</tr>
</table>
</td>
<td valign="top">
<table width="100%" border="1" cellspacing="1" cellpadding="1" bordercolor="#FF0000">
<tr>
<th>Cat 2</th>
</tr>
<tr>
<td>xxxx</td>
</tr>
<tr>
<td>xxxx</td>
</tr>
</table>
</td>
<td valign="top">
<table width="100%" border="1" cellspacing="1" cellpadding="1" bordercolor="#FF0000">
<tr>
<th>Cat 3</th>
</tr>
<tr>
<td>xxxx</td>
</tr>
</table>
</td>
</tr>
</table>

patricken
05-28-2002, 06:53 AM
Well, well, it seems like I missed the holder
" valign="top" " !
Thank“s a lot mate, it worked out fine!

Cheers,
Patricken