user3187469
user3187469

Reputation: 1521

Table and span overlay

http://jsfiddle.net/PR8y3/

How can I make the button on top right so the background fills the <th> completely in this area, without these margins around it?

Upvotes: 0

Views: 97

Answers (2)

Joe Saad
Joe Saad

Reputation: 1950

I noticed you have a padding:3px on the th of the table. I changed the markup a little by adding a couple of classes and a span for the title.

<tr>
       <th class="title" colspan="2"><span class="main">Title </span><span class="pull-right"><a href="#">button</a></span>
       </th>
   </tr>


.table.table-thin thead th.title {padding:0px}
.table.table-thin thead th.title span {padding:3px;}

Here the updated forked jsfiddle. http://jsfiddle.net/joeSaad/zp5hC/1/

Upvotes: 1

FarwallGhost
FarwallGhost

Reputation: 718

insert to your css display:block;

Upvotes: 0

Related Questions