Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Ionic table not letting me vertical allign contents of table cell (td) and a strange padding

$
0
0

So I have this code pen works fine: http://codepen.io/cooervo/pen/LpNqQR?editors=110

But I'm trying the same in ionic and I get:

Imgur

It has a weird internal padding and also things arrent vertically align inside the cells.

Ok jsut used chromes inspect element and it seemed the class "row" had some padding so I just overrided it.

UPDATE with ANSWER

  <tr class="row-custom">
    <td class="instructions">
      Subir foto de su cédula
    </td>
    <td class="icon">
      <img src="img/icons/ic_white-camera.png">
    </td>
  </tr>
  </tbody>
</table>

I was insert a height in td and removed it and added it to class .row-custom now it works, really strange..,..

#meds-cam-scanner .docs {
  border-spacing:0;
  border-collapse: collapse;
  width: 300px;
  border: $dark-borders;
}

#meds-cam-scanner .docs td{
  vertical-align: middle;
}

#meds-cam-scanner .row-custom {
  padding: 0;
  height: 200px;
}

Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>