Skip to main content
May 9, 2009
Question

CSS- Creating a multiple-column Table

  • May 9, 2009
  • 1 reply
  • 855 views

Hello,

The code below is pure CSS, and it displays a row for each "id."  This is great.  However, it looks like a table with one column.  I would like it to look like a table with three columns, one for each span below.  How can I do this?

Thanks in advance,

John

<div class='entry'>
 
  <span class='link2'> 
   <a href='<?php echo $row['link']; ?>'> <?php echo $row['title']; ?> </a> 
  </span> 
   
  <span class='votes_count' id='votes_count<?php echo $row['id']; ?>'><?php echo $effective_vote." votes"; ?></span> 
  
  <span class='vote_buttons' id='vote_buttons<?php echo $row['id']; ?>'> 
   <a href='javascript:;' class='vote_up' id='<?php echo $row['id']; ?>'></a> 
  </span>

</div>

This topic has been closed for replies.

1 reply

MurraySummers
Inspiring
May 9, 2009

Why not use a table?

May 9, 2009

Hi,

I want to use this with Ajax.  As it is set up right now, I can get the Ajax to work.  When I set it up in a table, I can't get the Ajax to work.

So I thought about trying to modify the non-table-yet-Ajax-functioning set-up until it looked like a table. 

-John

MurraySummers
Inspiring
May 9, 2009

There would be nothing inherent about having things in a table that would cause AJAX not to work.  But there could be something inherent in the way you have tried to do it that would.  At this point we would need to see your page and its code.