I’m not sure why, but i can’t seem to style a td element in my script. I’m trying to remove a border from all the td elements in the table-subtitles, and i guess my css is wrong somehow.
PS: I was able to remove the border by inline css only.
HTML:
<table>
<thead>
<tr>
<th width="100%" colspan="5">My Recent Activity</th>
</tr>
</thead>
<tbody>
<tr class="table-subtitles">
<td style="border: 0"><h4>Date</h4></td>
<td><h4>Description</h4></td>
<td><h4>Amount</h4></td>
<td><h4>Due</h4></td>
<td><h4>Status</h4></td>
</tr>
<?php foreach($this->payments as $payment): ?>
<tr>
</tr>
<?php endforeach; ?>
<?php
if ((count($this->payments)==0)) :
?>
<tr>
<td style="border: 0; text-align: center" colspan="6" class="info">No payments made yet</td>
</tr>
<?php endif; ?>
</tbody>
</table>
CSS:
#payments-content { width: 480px; float: left; margin-right: 20px; }
#payments-sidebar { width: 270px; float: left; }
.ui-button-large .ui-button-large-text { font-size: 20px; width: 270px; }
// new tables design
.table-subtitles td{ border-bottom: 0 !important; }
// is not a css comment. you must use /* */