I
I
Ilya Vegner2018-11-02 15:32:53
Email
Ilya Vegner, 2018-11-02 15:32:53

How to line up mjml elements?

Hello, such a problem:
I have a common column in which I put the title and I need to put mj-image next to it with mj-text

<mj-text mj-class="title">
      example text
    </mj-text>
    
    <mj-image width="31px" height="31px" src="url" border="1px solid #415a6d" border-radius="16px" />
    <mj-text color="black"
      font-size="14px"
      font-family="Helvetica"
      line-height="19px">
      text2
    </mj-text>

If you insert this code, they will not line up!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Elizarov, 2019-11-21
@maximkinn

one section and two columns

<mjml>
  <mj-body width="600px">
   
    <mj-section>

      <mj-column width="300px">
<mj-image width="31px" height="31px" src="url" border="1px solid #415a6d" border-radius="16px" />
      </mj-column>
      <mj-column width="300px">
       <mj-text color="black"
      font-size="14px"
      font-family="Helvetica"
      line-height="19px">
      text2
    </mj-text>
      </mj-column>
     
    </mj-section>
</mj-body>
</mjml>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question