I have this code here, that creates a table using a div as a row and spans as table cells (using the appropriate 'display: xxxxxxx') This works excellently in safari, firefox, opera and IE 6, but IE 7 does not render the span widths or heights.
I spent the entire day yesterday working on this issue - anyone have any ideas?
Jason
Here's the code:
I spent the entire day yesterday working on this issue - anyone have any ideas?
Jason
Here's the code:
Code:
<style>
body {
font-family: trebuchet ms,tahoma,arial,verdana,monospace;
font-size: 12px;
}
.bold { font-weight: bold; }
.filter_menu { border-bottom: groove 2px #FFF; }
.filter_menu select { width: 65px; margin-right: 10px;}
.it_head_row {
display: table-row;
height: 1.3em;
border-bottom: groove 3px #4D4E0C;
}
.it_header_field {
color: #000;
font-size: 1.25em;
font-weight: bold;
}
.it_row {
display: table-row;
height: 30px;
}
.it_date_col { display: table-cell; width: 75px; text-align: left; vertical-align: top; }
.it_buyer_col { display: table-cell; width: 125px; text-align: left; vertical-align: top; }
.it_shares_col { display: table-cell; width: 75px; text-align: left; vertical-align: top; }
.it_transaction_col { display: table-cell; width: 140px; text-align: left; vertical-align: top; }
</style>
<div class="it_head_row">
<span class="it_date_col it_header_field">Date</span>
<span class="it_buyer_col it_header_field">Name</span>
<span class="it_shares_col it_header_field">Shares</span>
<span class="it_transaction_col it_header_field" >Transaction</span>
</div>
<div class="it_row">
<span class="it_date_col"><%=h insider_transaction.date.strftime("%m - %d - %Y") %></span>
<span class="it_buyer_col"><span class="bold"><%=h insider_transaction.buyer %></span><br />
<%=h insider_transaction.buyer_description %></span>
<span class="it_shares_col"><%=h insider_transaction.number_of_shares.to_s.gsub(/(\d)(?=(\d\d\d)+(?!\d))/, "\\1,") %></span>
<span class="it_transaction_col"><span><%=h insider_transaction.description %></span><br />
<%=h number_to_currency(insider_transaction.cost, :precision => 2) %></span>
</div>