Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Absolute position not supported by Samsung Email #444

Open
samouchka1 opened this issue Jul 24, 2024 · 0 comments
Open

Absolute position not supported by Samsung Email #444

samouchka1 opened this issue Jul 24, 2024 · 0 comments
Labels
Data bug Did we say something wrong?

Comments

@samouchka1
Copy link

Absolute position not supported by Samsung Email

results-actual
results-samsung

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0 ">
    <meta name="format-detection" content="telephone=no,address=no,email=no,date=no,url=no">
    <meta name="x-apple-disable-message-reformatting">

    <title>Template</title>

  <style type="text/css">
    body {
      margin: 0 auto !important;
      padding: 0 !important;
      -ms-text-size-adjust: 100%;
      -webkit-text-size-adjust: 100%;
      word-spacing: normal;
      font-family: Arial, Helvetica, sans-serif;
    }
    table {
      mso-table-lspace: 0;
      mso-table-rspace: 0;
      -webkit-text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;
    }
  </style>

  <style type="text/css">
    .bgtable {
      background-color: #eeeeee;
      width: 100%;
      min-width: 100%;
    }
    .wrapper {
      width: 600px;
      min-width: 600px;
    }
    .maintable {
      width:540px; 
      max-width:540px;
    }
  </style> 

  <style>
    @media only screen and (max-width:599px) {
      .wrapper {
        width: 100% !important;
        min-width: 100% !important;
      }
      .maintable {
        width: 90% !important;
      }
    }
  </style>

  <style>
    .box {
      width: 400px;
      height: 400px;
      background-color: #dadada;
      position: relative;
    }
    .item1 {
      position: absolute;
      top: 50%;
      left: 20%;
      width: 50px;
      height: 50px;
      background-color: #3b608e;
      color: #ffffff;
      padding: 10px;
    }
    .item2 {
      position: absolute;
      top: 25%;
      left: 65%;
      width: 50px;
      height: 50px;
      background-color: #68a549;
      color: #ffffff;
      padding: 10px;
    }
    @media only screen and (max-width:599px) {
      .box {
        width: 100% !important;
        max-width: 400px !important;
      }
    }
  </style>

  <!--[if gte mso 12]>
    <style type="text/css">
      td,
      table {
        border-collapse: collapse !important;
      }
    </style>
  <![endif]-->

  <!--[if mso]>
    <noscript>
      <xml>
        <o:OfficeDocumentSettings>
          <o:PixelsPerInch>96</o:PixelsPerInch>
        </o:OfficeDocumentSettings>
      </xml>
    </noscript>
  <![endif]-->
  </head>
  
  <body class="body" style="-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; word-spacing: normal; font-family: Arial, Helvetica, sans-serif; margin: 0 auto; padding: 0;">

  <table class="bgtable" role="presentation" border="0" cellspacing="0" cellpadding="0" style="mso-table-lspace: 0; mso-table-rspace: 0; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; background-color: #eeeeee; width: 100%; min-width: 100%;" width="100%" bgcolor="#eeeeee">
    <tr>
      <td align="center">
        <table class="wrapper" role="presentation" border="0" cellspacing="0" cellpadding="0" style="mso-table-lspace: 0; mso-table-rspace: 0; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; width: 600px; min-width: 600px;" width="600">
          <tr>
            <td align="center">
              <table class="maintable" role="presentation" border="0" cellspacing="0" cellpadding="0" style="mso-table-lspace: 0; mso-table-rspace: 0; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; width: 540px; max-width: 540px;" width="540">
                <tr>
                  <td align="center">
                    <table class="box" role="presentation" border="0" cellspacing="0" cellpadding="0" style="mso-table-lspace: 0; mso-table-rspace: 0; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; width: 400px; height: 400px; background-color: #dadada; position: relative;" width="400" height="400" bgcolor="#dadada">
                      <tr>
                        <td class="item1" style="position: absolute; top: 50%; left: 20%; width: 50px; height: 50px; background-color: #3b608e; color: #ffffff; padding: 10px;" width="50" height="50" bgcolor="#3b608e">
                          item1
                        </td>
                        <td class="item2" style="position: absolute; top: 25%; left: 65%; width: 50px; height: 50px; background-color: #68a549; color: #ffffff; padding: 10px;" width="50" height="50" bgcolor="#68a549">
                          item2
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  
  </body>
</html>
@hteumeuleu hteumeuleu added the Data bug Did we say something wrong? label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Data bug Did we say something wrong?
Projects
None yet
Development

No branches or pull requests

2 participants