S
S
serega 20702018-10-04 20:47:01
Layout
serega 2070, 2018-10-04 20:47:01

How to remove spacing between tables in html?

Hey! could you please tell me how to remove the space between two tables?
I’m tired of codepen Aaaa
5bb651bb755a1693163014.png
((I can’t understand anymore, well, I feel stupid somewhere, it can’t be that this gap can’t be removed (

<table align="center" cellspacing="0" cellpadding="0" border="0" style="width:100%; max-width:600px; border:0;">


    <tr>
      <td style="text-align:center;">

        <div class="column" style="width:100%;max-width:420px;display:inline-block;vertical-align:top;">
          <table width="100%" cellspacing="0" cellpadding="0" border="0" style="border-spacing:0;border:0;">
            <tr>
              <td align="center" style="text-align:center;">
                <img src="https://via.placeholder.com/420x90" style="border-spacing: 0px; border:0;" border="0" alt="">
              </td>
            </tr>
          </table>
        </div>

        <div class="column" style="width:100%;max-width:60px;display:inline-block;vertical-align:top;">
          <table width="100%" cellspacing="0" cellpadding="0" border="0" style="border-spacing:0;border:0;">
            <tr>
              <td align="center" style="text-align:center;">
                <img src="https://via.placeholder.com/60x90" style="border-spacing: 0px; border:0;" border="0" alt="">
              </td>
            </tr>
          </table>
        </div>

      </td>
    </tr>



  </table>

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Serj-One, 2018-10-04
@pecha89

display:inline-block.column
inline-block elements have a standard space between them . Solved through font-size: 0for the parent.

A
AngReload, 2018-10-04
@AngReload

Remove spaces and line breaks between </div>and <div>.
css-live.ru/articles/zagadochnye-otstupy-mezhdu-in...

S
serega 2070, 2018-10-04
@Pecha89

Thanks) font-size:0; exactly what is needed)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question