0

My problem is simply, a have table with labels and image link. Why, in IE11, labels height is not 100%? In Chrome and FF is work.

 <table>
        <tr>
            <td><a id="a2">sad</a></td>
              <td>
                  <label>asdasdasd</label>
            </td>
        </tr>
          <tr>
                <td><a id="a2">sad</a></td>
                  <td>
                      <label>asdad</label>
                </td>
            </tr>
    </table>

https://jsfiddle.net/newxfcfw/

Element <a> it has a different height in each row, 50px is only example.

devQwerty
  • 106
  • 1
  • 12
  • @Aks IE11 ............ – devQwerty Aug 28 '15 at 09:03
  • 2
    No CSS? We don't have a crystal ball... – connexo Aug 28 '15 at 09:05
  • 1
    possible duplicate of [IE display: table-cell child ignores height: 100%](http://stackoverflow.com/questions/27384433/ie-display-table-cell-child-ignores-height-100) – Etheryte Aug 28 '15 at 09:06
  • Ok, I have seen you updated your question so deleted my comment but I don't have access to IE11 right now so cannot help. But you can inspect element in IE & try different `css` to find to actual issue. – Aks Aug 28 '15 at 09:07
  • @connexo I think he has included css in Fiddle link. – Aks Aug 28 '15 at 09:09
  • 1
    **You cannot use** `position: absolute:` in a table. The results are unpredictable. – connexo Aug 28 '15 at 09:11

1 Answers1

0

Change the height in pixel:

label{
position:absolute;
display:block;
background:orange;
height:100%

}

label{
position:absolute;
display:block;
background:orange;
height:50px;

}

Kirsteins
  • 27,065
  • 8
  • 76
  • 78
Lalji Tadhani
  • 14,041
  • 3
  • 23
  • 40