1 Reply Latest reply on Jul 28, 2009 11:45 PM by mikebgx

    CSS styles in Seam Mailer

    mikebgx
      I'm sending emails from a Seam app by using a <h:dataTable within the <m:body of a <m:message.
      I'd like to left-align the columns. For a <h:datatable thats displayed on a web-page I can add: headerClass="leftColumn, leftColumn" where .leftColumn in my .css contains: text-align: left;

      But I can't see how to reference the .css file from my email facelet

      At the start of my <m:body I tried adding:
      <html>
      <head>
        <link href="stylesheet/theme1.css" rel="stylesheet" type="text/css" />
      </head>
      but column headers in the email are still centred.

      Any ideas please?

        • 1. Re: CSS styles in Seam Mailer
          mikebgx
          Hi Folks,

          I've answered my own question, here's how I did it in case anyone else needs to...
          I defined an internal stylesheet, but needed to put it inside an escaped <f:verbatim

          So immediately after my   <m:body>   I have:
            <html>
              <head>
          <f:verbatim escape="true"> <style> .leftColumn {text-align: left;} </style> </f:verbatim>
              </head>
              <body>
                  .....

          Then having defined the style, in my <h:dataTable I can add this:
          headerClass="leftColumn, leftColumn, ...

          Regards,  Mike