@media only screen and (max-device-width: 480px) { ... }
. With it, you can work well with the old iPhone and other mobile devices of the same form factor.@media only screen and (min-device-width: 320px) and (max-device-width: 480px) { ... }
If you use adaptive design techniques (which is definitely worth doing!), This means that using default media queries with breakpoints in screen sizes is simply useless.
- Mark Drummond , “ Adaptive design with breakpoints dead ”
@media only screen and (max-device-width: 480px) { td[class="headercell"] { background-image: url(images/header-325.png); width: 325px !important; height: 115px !important; } td[class="headercell"] img { display: none; } }
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="headercell"> <img src="images/header.png" border="0" width="600" /> </td> </tr> </table>
background-size: 100%
options in our media query above background-size: 100%
. But there is a better option - background-size: cover : @media only screen and (max-device-width: 480px) { td[class="headercell"] { background-image: url(images/header-480.png) !important; background-size: cover; } td[class="headercell"] img { display: none; } }
background-size
, so everything will work fine in the default iPhone and Android mail clients. In other cases, you can use the traditional approach with the use of the tag and further resize the image: @media only screen and (max-device-width: 480px) { td[class=headercell] img { height:auto !important; width:100% !important; } }
@media only screen and (max-device-width: 480px) { td[class="headercell"] { background-image: url(images/header-650@2x.png) !important; background-size: 325px 115px; width: 325px !important; height: 115px !important; } td[class="headercell"] img { display: none; } } }
@media all and (min-device-pixel-ratio : 1.5) { ... }
input type=”email”
. When using the input type=”email”
parameter in the forms for entering an email address, a special keyboard will appear on iOS phones, including characters like @./>
Detailed information on this topic is presented, for example, in the Apple documentation.@media only screen and (max-width: 480px) { ... }
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:

.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:

.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:
.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:

.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:
.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:

.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:
.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:

.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:

.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:

.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:
.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:

.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:
.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:

.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:
.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:

.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:

.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:

.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:

.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
— HTML- , @media only screen and (max-width: 480px)
. , :
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="background-color:#e9eff2; padding: 30px 15px 0;"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; color: #333;">
wrappertable
, wrappercell
structure
:
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="wrappertable"> <tbody> <tr> <td style="background-color:#e9eff2;padding:30px 15px 0" class="wrappercell"><table cellspacing="0" cellpadding="0" border="0" align="center" width="710" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;color:#333" class="structure">
media query:
@media only screen and (max-device-width: 480px) { body { width: 320px !important; } table[class="wrappertable"] { width: 320px !important; } table[class="structure"] { width: 300px !important; }
, iPhone ( 2012 — . .) 320px. 100% — , , , .
, « » Twitter, . , , .
:
<img alt="Twitter" height="52" src="http://a0.twimg.com/a/1335832060/images/email/email_header_710.png" style="border: 0; display: block;" width="710" />
:
<img alt="Twitter" height="52" src="logo-left.png" style="border:0;" width="41" class="logo"><img alt="Twitter" height="52" src="logo.png" style="border:0;" width="320"><img alt="Twitter" height="52" src="logo-right.png" style="border:0;" width="336" class="logo">
, logo logo-left.png
, logo.png
logo-right.png
. :
img[class="logo"] { display: none !important; }
:

.
, !
email- «»:
How-to: email- : - 5 email- Youtube email-
Source: https://habr.com/ru/post/257397/
All Articles