1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] I am using pthon mjml (https://pypi.org/project/mjml/) to convert mjml to html but...

Discussão em 'Python' iniciado por Stack, Setembro 11, 2024.

  1. Stack

    Stack Membro Participativo

    I am using pthon mjml (https://pypi.org/project/mjml/) to convert mjml to html but converted html is not able to render background image in out look

    • mjml code

    <mj-section
    background-position="bottom right"
    padding-top="0px"
    padding-right="25px"
    padding-bottom="0px"
    padding-left="25px"
    background-color="#f7f7f7"
    background-url="{{ static_url }}images/email_result_summry_bg.svg"
    background-repeat="no-repeat"
    >

    • converted html

    <div style=\ "background:url('https://purple.insightloupe.com/static/images/context-bg.jpg') center top / cover no-repeat;background-position:center top;background-repeat:no-repeat;background-size:cover;margin:0px auto;max-width:600px\">
    <div style=\ "line-height:0;font-size:0\">
    <table align=\ "center\" background=\ "https://purple.insightloupe.com/static/images/context-bg.jpg\" border=\ "0\" cellpadding=\ "0\" cellspacing=\ "0\" role=\ "presentation\" style=\
    "width:100%;background:url('https://purple.insightloupe.com/static/images/context-bg.jpg') center top / cover no-repeat;background-position:center top;background-repeat:no-repeat;background-size:cover\">

    • when i am removing background image it is working fine but i could not remove background image

    Continue reading...

Compartilhe esta Página