Posted by Vince Wadhwani on May 18, 2008 in | html/css | ruby

My HAML adventures continue. This time, I'm documenting how to limit the length of a table or table cell. Usually I'd just do something like

 <td width = "500px">

but with HAML you've got to take a different approach. Fortunately it's not that hard:

 %td{:width => 20}=My cell contents