A
A
amadel2015-09-17 16:55:41
css
amadel, 2015-09-17 16:55:41

How to make horizontal scroll in gmail email?

Good afternoon!
Help me to make a letter layout for gmail, so that there is a block with horizontal scrolling, inside of which there are pictures. Now gmail from such a template, makes the block the maximum width and adds a scroll bar to the entire email.

<div style="overflow: auto;">
<table width="100%" height="300" cellspacing="0" cellpadding="0" border="0">
<tbody>
  <tr>
    <td valign="middle" style="font-size:0;line-height:0;" height="300">
      <img src="https://www.google.ru/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" border="0">
    </td>
    <td valign="middle" style="font-size:0;line-height:0;" height="300">
      <img src="https://www.google.ru/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" border="0">
    </td>
    <td valign="middle" style="font-size:0;line-height:0;" height="300">
      <img src="https://www.google.ru/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" border="0">
    </td>
    <td valign="middle" style="font-size:0;line-height:0;" height="300">
      <img src="https://www.google.ru/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" border="0">
    </td>
    <td valign="middle" style="font-size:0;line-height:0;" height="300">
      <img src="https://www.google.ru/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" border="0">
    </td>
    <td valign="middle" style="font-size:0;line-height:0;" height="300">
      <img src="https://www.google.ru/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" border="0">
    </td>
    </tr>
</tbody></table>
</div>

Is it possible to do this? Thanks in advance!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
Gregory, 2015-09-21
@grigruss

It seems so...

<div style="overflow: auto;"><div>
<table width="100%" height="300" cellspacing="0" cellpadding="0" border="0">
<tbody>
  <tr>
    <td valign="middle" style="font-size:0;line-height:0;" height="300">
      <img src="https://www.google.ru/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" border="0">
    </td>
    <td valign="middle" style="font-size:0;line-height:0;" height="300">
      <img src="https://www.google.ru/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" border="0">
    </td>
    <td valign="middle" style="font-size:0;line-height:0;" height="300">
      <img src="https://www.google.ru/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" border="0">
    </td>
    <td valign="middle" style="font-size:0;line-height:0;" height="300">
      <img src="https://www.google.ru/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" border="0">
    </td>
    <td valign="middle" style="font-size:0;line-height:0;" height="300">
      <img src="https://www.google.ru/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" border="0">
    </td>
    <td valign="middle" style="font-size:0;line-height:0;" height="300">
      <img src="https://www.google.ru/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" border="0">
    </td>
    </tr>
</tbody></table></div>
</div>

A
amadel, 2015-09-21
@amadel

Gregory, thanks for your help. But, unfortunately, it didn’t work out, a scroll bar still appears for the entire letter, not for the table:
e2bc46dd3576406ab4c903bad935663d.png

R
Rithmsamba, 2015-09-22
@Rithmsamba

Set the width to the div itself, like so<div style="width: 80%; overflow: auto;"></div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question