seven
seven

Reputation: 146

How can I set width of a table less than 1 percent

How can I set width of a table less than 1 percent?

<div>
<table class='total_cost table no-margin' cellpadding="0" cellspacing="0" width="0.5%" style='background:#4A84CE; float:left; height:20px; padding:0px; border:none; border-spacing:0px; border-collapse:collapse;'>
 <tr>
   <td class='cost text-right fg-white employee-tooltip' cellpadding="0" cellspacing="0" style='padding:0px; border:none;border-spacing:0px; border-collapse:collapse; background:#F00' ></td>
       </tr>
</table>
<span class="display_time"> 2 hours</span>
</div>

Upvotes: 1

Views: 523

Answers (2)

MSH
MSH

Reputation: 1287

Put any width between 0% and 1% like 0.25%, 0.50%, 0.75%

  <div>
    <table class='total_cost table no-margin' cellpadding="0" cellspacing="0" width="0.50%" style='background:#4A84CE; float:left;  height:20px; padding:0px; border:none; border-spacing:0px; border-collapse:collapse;'>
     <tr>
       <td class='cost text-right fg-white employee-tooltip' cellpadding="0" cellspacing="0" style='padding:0px; border:none;border-spacing:0px; border-collapse:collapse; background:#F00' ></td>
           </tr>
    </table>
    <span class="display_time"> 2 hours</span>
    </div>

Upvotes: 1

Raviteja
Raviteja

Reputation: 3479

<div>
<table class='total_cost table no-margin' cellpadding="0" cellspacing="0" width="0.1%" style='background:#4A84CE; float:left; height:20px; padding:0px; border:none; border-spacing:0px; border-collapse:collapse;'>
 <tr>
   <td class='cost text-right fg-white employee-tooltip' cellpadding="0" cellspacing="0" style='padding:0px; border:none;border-spacing:0px; border-collapse:collapse; background:#F00' ></td>
       </tr>
</table>
<span class="display_time"> 2 hours</span>
</div>

Upvotes: 0

Related Questions