horizontal table layout using css

Posted by fusion on Stack Overflow See other posts from Stack Overflow or by fusion
Published on 2010-04-29T10:50:40Z Indexed on 2010/04/29 10:57 UTC
Read the original article Hit count: 593

Filed under:
|
|
|

instead of the usual vertical table data layout something like this:

alt text

i'd like to display it like this in css:

alt text

any ideas?

my php/html code:

<div class="center_div">
<table>
<tr>
<th>Author</th>
<th>Quotes</th>
<th>Arabic</th>
<th>Reference</th>
</tr>
    <?php while ($row= mysql_fetch_array($result)) { ?>
        <tr>
            <td width="150"><?php h($row['vAuthor']) ?></td>
            <td><?php h($row['cQuotes']) ?></td>
            <td><?php h($row['cArabic']) ?></td>
            <td><?php h($row['vReference']) ?></td>
        </tr>
    <?php } ?>
</table>
</div></div>

© Stack Overflow or respective owner

Related posts about css

Related posts about css-layout