mardi 28 juin 2016

How to make flag (using flag-icon-css) fill table cell?

I'm using flag-icon-css on a site.

Here is the generated HTML table row:

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/2.3.1/css/flag-icon.min.css" rel="stylesheet"/>
<table class="table">
  <thead>
    <tr>
      <th class="text-center">Location</th>
      <th class="text-center">Number</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td class="text-center"><span class="flag-icon flag-icon-us"></span></td>
      <td class="text-center"><a class="btn btn-primary" href="/view?+16466635449">(646) 663-5449</a></td>
    </tr>
  </tbody>
</table>

Here is a screenshot:

enter image description here

How can I make the flag larger so it looks more normal, according to the flag-icon-css it should automatically behave in this way?

Looking for a solution without using custom CSS.

This site is using Bootstrap.

Aucun commentaire:

Enregistrer un commentaire