You are viewing limited content. For full access, please sign in.

Question

Question

vertical-align isn't working when put as "top"

asked on June 29, 2022

I see there are several posts about others having their HTML render incorrectly. I tried some of the techniques, and the closest I got  was where I am at now.

Below, I have my result and then my HTML. What am I doing wrong? The expected result is to have all the titles aligned.

 

 

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <table>
      <tr>
        <th style="background-color: darkgreen; color: white; vertical-align: top;">Scanner</th>
        <th style="background-color: darkgreen; color: white; vertical-align: top;">Start Date</th>
        <th style="background-color: darkgreen; color: white; vertical-align: top;">End Date</th>
        <th style="background-color: darkgreen; color: white; vertical-align: top;">Documents</th>
      </tr>
      <tr>
        <td>%(_scanner_fullNames#[1]#)</td>
        <td>%(_tc__oneMonthAgo)</td>
        <td>%(_tc__today)</td>
        <td>%(_resultCount#[1]#)</td>
      </tr>
      <tr>
        <td>%(_scanner_fullNames#[2]#)</td>
        <td>%(_tc__oneMonthAgo)</td>
        <td>%(_tc__today)</td>
        <td>%(_resultCount#[2]#)</td>
      </tr>
    </table>
  </body>
</html>

 

0 0

Answer

SELECTED ANSWER
replied on June 29, 2022

Same as your other post (https://answers.laserfiche.com/questions/200192/Whats-possible-with-style-for-HTML-emails-I-cant-get-my-table-to-render-correctly#200203), I think the issue is the Workflow editor not treating the body of the email purely as HTML and thus adding in extra line breaks.  I recommend removing all line breaks so that your HTML looks like an ugly run-on sentence: 

<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><title>Document</title></head><body><table><tr><th style="background-color: darkgreen; color: white; vertical-align: top;">Scanner</th><th style="background-color: darkgreen; color: white; vertical-align: top;">Start Date</th><th style="background-color: darkgreen; color: white; vertical-align: top;">End Date</th><th style="background-color: darkgreen; color: white; vertical-align: top;">Documents</th></tr><tr><td>%(_scanner_fullNames#[1]#)</td><td>%(_tc__oneMonthAgo)</td><td>%(_tc__today)</td><td>%(_resultCount#[1]#)</td></tr><tr><td>%(_scanner_fullNames#[2]#)</td><td>%(_tc__oneMonthAgo)</td><td>%(_tc__today)</td><td>%(_resultCount#[2]#)</td></tr></table></body></html>

 

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.