Okay, we know there are issues with html tables and Ajax.  Is there
any good reason not to fake tables using CSS and nested lists?  Then I
could using Ajax on any row or any part of the table right?  Is there
some best-practice for doing this?  Here is a sample of the html and
css I am currently using to fake a table...
<html>
<head>
 <style type="text/css">
   ul#fake_table {margin: 0; padding: 0; border: 1px solid;}
   ul#fake_table ul.tr {margin: 0; padding:0; position: relative;
border:1 px solid black; width: 100%; height:2em;}
   ul#fake_table ul.tr li {margin:0; padding:0; position:absolute;
display:inline; height: 100%;}
   ul#fake_table ul.header {text-transofrm: uppercase; font-
weight:bold;}
   ul#fake_table ul.tr li.col_a {left:0%;}
   ul#fake_table ul.tr li.col_b {left:33%;}
   ul#fake_table ul.tr li.col_c {left:66%;}
 </style>
</head>
<body>
  <h1>Fake Table</h1>
  <ul id="fake_table">
    <ul class="tr header">
      <li class="col_a">a</li>
      <li class="col_b">b</li>
      <li class="col_c">c</li>
    </ul>
    <ul class="tr light">
      <li class="col_a">1</li>
      <li class="col_b">2</li>
      <li class="col_c">3</li>
    </ul>
    <ul class="tr dark">
      <li class="col_a">11</li>
      <li class="col_b">12</li>
      <li class="col_c">13</li>
    </ul>
  </ul>
</body>
</html>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to