Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Mail</title>
    <link rel="stylesheet" href="../main.css">
    <style>	@media only screen and (max-width: 300px){ 
        body {
            width:218px !important;
            margin:auto !important;
        }
        thead, tbody{width: 100%}
        .table {width:195px !important;margin:auto !important;}
        .logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto !important;display: block !important;}		
        span.title{font-size:20px !important;line-height: 23px !important}
        span.subtitle{font-size: 14px !important;line-height: 18px !important;padding-top:10px !important;display:block !important;}		
        td.box p{font-size: 12px !important;font-weight: bold !important;}
        .table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr { 
            display: block !important; 
        }
        .table-recap{width: 200px!important;}
        .table-recap tr td, .conf_body td{text-align:center !important;}	
        .address{display: block !important;margin-bottom: 10px !important;}
        .space_address{display: none !important;}	
    }
@media only screen and (min-width: 301px) and (max-width: 500px) { 
        body {width:425px!important;margin:auto!important;}
        thead, tbody{width: 100%}
        .table {margin:auto!important;}	
        .logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}	
        .table-recap{width: 295px !important;}
        .table-recap tr td, .conf_body td{text-align:center !important;}
        .table-recap tr th{font-size: 10px !important}
        
    }
@media only screen and (min-width: 501px) and (max-width: 768px) {
        body {width:478px!important;margin:auto!important;}
        thead, tbody{width: 100%}
        .table {margin:auto!important;}	
        .logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}			
    }
@media only screen and (max-device-width: 480px) { 
        body {width:340px!important;margin:auto!important;}
        thead, tbody{width: 100%}
        .table {margin:auto!important;}	
        .logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
        
        .table-recap{width: 295px!important;}
        .table-recap tr td, .conf_body td{text-align:center!important;}	
        .address{display: block !important;margin-bottom: 10px !important;}
        .space_address{display: none !important;}	
    }
    @import url('https://fonts.googleapis.com/css?family=Montserrat300,400,700');
</style>
</head>
<tbody style="background-color: #074B8B;">
<span style="    margin: 0;
padding: 0;">

    <div class="container" style="    background-color: #074B8B;
    padding-bottom: 6em;">
        <img style="    display: block;
        margin-left: auto;
        margin-right: auto;
        padding-top: 5em;
        margin-bottom: 3em;" class="logo" src="https://www.swedron.se/img/swedron-logo-1515767351.jpg" alt="">
        <div class="content" style="    display: block;
        background-color: #fff;
        width: 95%;
        max-width: 755px;
        height: auto;
        margin-left: auto;
        margin-right: auto;
        margin-top: 2em;
        box-shadow: 5px 5px 20px rgba(22, 22, 22, 0.315);
        border-radius: 8px;
        padding-bottom: 2em;">
            <h2 style="    font-family: 'Montserrat400', sans-serif;
            text-transform: capitalize;
            margin: 0.4em 2.95em;
            text-align: left;
            padding-top: 2em;
            padding-bottom: 0em;
            color: rgba(0, 0, 0, 0.678);">Hej {firstname}!</h2>
            <h3 style="    font-family: 'Montserrat', sans-serif;
            text-align: left;
            padding-top: 0em;
            font-size: 0.9em;
            font-style: normal;
            font-weight: 400;
            margin: 0.2em 5em 0.8em 5em;
            margin-bottom: 1.2em; color: rgba(0, 0, 0, 0.548);">Tack för din beställning! Vi hoppas du kommer bli nöjd med dina produkter. Vi kommer inom kort att behandla din order vidare och återkommer då med ny statusuppdatering.
            Har du några frågor är du välkommen att höra av dig till vår kundtjänst via chat, mail eller telefon.
            </h3>

            <!-- Padding -->

            

            <!-- Ordersummering -->
            <tr>
                <td class="box" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;">
                <table class="table" style="width: 90%; margin-left: auto; margin-right: auto; margin-bottom: 1em;">
                <tbody>
                <tr>
                <td style="padding: 7px 0;" width="10">&nbsp;</td>
                <td style="padding: 7px 0;">
                <p data-html-only="1" style="font-family: 'Montserrat', sans-serif; border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: initial; font-weight: 400; font-size: 18px; padding-bottom: 10px;">Ordersummering</p>
                <span size="2" color="#555454" style="color: #555454; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: small;"><span style="color: #777;"> <span style="color: #333;"><strong>Ordernr:</strong></span> #{order_name} Skapad {date}<br><br> <span style="color: #333;"><strong>Betalsätt:</strong></span> {payment} </span> </span></td>
                <td style="padding: 7px 0;" width="10">&nbsp;</td>
                </tr>
                </tbody>
                </table>
                </td>
            </tr>

            <!-- Order -->
            <tr>
                <td style="padding: 7px 0;">
                <table class="table table-recap" style="width: 90%; border-collapse: collapse; margin-left: auto; margin-right: auto;" bgcolor="#ffffff"><!-- Title -->
                <tbody>
                <tr><th style="border: 1px solid #D6D4D4; background-color: #074b8b; color: #ffffff; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 13px; padding: 3px; text-align: left;" bgcolor="#f8f8f8">Artikelnr</th><th style="border: 1px solid #D6D4D4; background-color: #074b8b; color: #ffffff; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 13px; padding: 3px; text-align: left;" bgcolor="#f8f8f8">Produkt</th><th style="border: 1px solid #D6D4D4; background-color: #074b8b; color: #ffffff; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 13px; padding: 3px; text-align: left;" width="17%" bgcolor="#f8f8f8">Enhetspris</th><th style="border: 1px solid #D6D4D4; background-color: #074b8b; color: #ffffff; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 13px; padding: 3px; text-align: left;" bgcolor="#f8f8f8">Antal</th><th style="border: 1px solid #D6D4D4; background-color: #074b8b; color: #ffffff; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 13px; padding: 3px; text-align: left;" width="17%" bgcolor="#f8f8f8">Totalpris</th></tr>
                <tr>
                <td colspan="5" style="font-family: 'Montserrat', sans-serif; font-weight: 400;border: 1px solid #D6D4D4; text-align: center; color: #777; padding: 4px 0;">&nbsp;&nbsp;{products}</td>
                </tr>
                <tr>
                <td colspan="5" style="font-family: 'Montserrat', sans-serif; font-weight: 400;border: 1px solid #D6D4D4; text-align: center; color: #777; padding: 4px 0;">&nbsp;&nbsp;{discounts}</td>
                </tr>
                <tr class="conf_body">
                <td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 5px 0;" bgcolor="#f8f8f8">
                <table class="table" style="width: 100%; border-collapse: collapse;">
                <tbody>
                <tr>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                <td style="color: #333; padding: 0;" align="right"><span size="2" face="Open-sans, sans-serif" color="#555454" style="color: #555454; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: small;"> Produkter</span></td>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                </tr>
                </tbody>
                </table>
                </td>
                <td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 5px 0;" bgcolor="#f8f8f8" align="right">
                <table class="table" style="width: 100%; border-collapse: collapse;">
                <tbody>
                <tr>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                <td style="color: #333; padding: 0;" align="right"><span size="2" face="Open-sans, sans-serif" color="#555454" style="color: #555454; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: small;"> {total_products} </span></td>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                </tr>
                </tbody>
                </table>
                </td>
                </tr>
                <tr class="conf_body">
                <td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 5px 0;" bgcolor="#f8f8f8">
                <table class="table" style="width: 100%; border-collapse: collapse;">
                <tbody>
                <tr>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                <td style="color: #333; padding: 0;" align="right"><span size="2" face="Open-sans, sans-serif" color="#555454" style="color: #555454; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: small;">Rabatter</span></td>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                </tr>
                </tbody>
                </table>
                </td>
                <td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 5px 0;" bgcolor="#f8f8f8">
                <table class="table" style="width: 100%; border-collapse: collapse;">
                <tbody>
                <tr>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                <td style="color: #333; padding: 0;" align="right"><span size="2" face="Open-sans, sans-serif" color="#555454" style="color: #555454; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: small;"> {total_discounts} </span></td>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                </tr>
                </tbody>
                </table>
                </td>
                </tr>
                <tr class="conf_body">
                <td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 5px 0;" bgcolor="#f8f8f8">
                <table class="table" style="width: 100%; border-collapse: collapse;">
                <tbody>
                <tr>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                <td style="color: #333; padding: 0;" align="right"><span size="2" face="Open-sans, sans-serif" color="#555454" style="color: #555454; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: small;">Leverans</span></td>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                </tr>
                </tbody>
                </table>
                </td>
                <td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 4px;" bgcolor="#f8f8f8">
                <table class="table" style="width: 100%; border-collapse: collapse;">
                <tbody>
                <tr>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                <td style="color: #333; padding: 0;" align="right"><span size="2" face="Open-sans, sans-serif" color="#555454" style="color: #555454; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: small;"> {total_shipping} </span></td>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                </tr>
                </tbody>
                </table>
                </td>
                </tr>
                <tr class="conf_body">
                <td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 4px;" bgcolor="#f8f8f8">
                <table class="table" style="width: 100%; border-collapse: collapse;">
                <tbody>
                <tr>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                <td style="color: #333; padding: 0;" align="right"><span size="2" face="Open-sans, sans-serif" color="#555454" style="color: #555454; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: small;">Total moms</span></td>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                </tr>
                </tbody>
                </table>
                </td>
                <td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 5px 0;" bgcolor="#f8f8f8">
                <table class="table" style="width: 100%; border-collapse: collapse;">
                <tbody>
                <tr>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                <td style="color: #333; padding: 0;" align="right"><span size="2" face="Open-sans, sans-serif" color="#555454" style="color: #555454; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: small;"> {total_tax_paid} </span></td>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                </tr>
                </tbody>
                </table>
                </td>
                </tr>
                <tr class="conf_body">
                <td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 5px 0;" bgcolor="#f8f8f8">
                <table class="table" style="width: 100%; border-collapse: collapse;">
                <tbody>
                <tr>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                <td style="color: #333; padding: 0;" align="right"><span size="2" face="Open-sans, sans-serif" color="#555454" style="color: #555454; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: small;"> <strong>Totalt belopp</strong> </span></td>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                </tr>
                </tbody>
                </table>
                </td>
                <td colspan="4" style="border: 1px solid #D6D4D4; color: #333; padding: 10px 0;" bgcolor="#f8f8f8">
                <table class="table" style="width: 100%; border-collapse: collapse;">
                <tbody>
                <tr>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                <td style="color: #333; padding: 0;" align="right"><span size="3" face="Open-sans, sans-serif" color="#555454" style="color: #555454; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: medium;"> {total_paid} </span></td>
                <td style="color: #333; padding: 0;" width="10">&nbsp;</td>
                </tr>
                </tbody>
                </table>
                </td>
                </tr>
                </tbody>
                </table>
                </td>
            </tr>

            <!-- Leverans -->
            <tr>
                <td class="box" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;">
                <table class="table" style="width: 90%; margin-left: auto; margin-right: auto; margin-top: 1em;">
                <tbody>
                <tr>
                <td style="padding: 7px 0;" width="10">&nbsp;</td>
                <td style="padding: 7px 0;">
                <p data-html-only="1" style="font-family: 'Montserrat', sans-serif; font-weight: 400;border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: initial; font-weight: 400; font-size: 18px; padding-bottom: 10px;">Leverans</p>
                <span size="2" face="Open-sans, sans-serif" color="#555454" style="color: #555454; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: small;"><span style="color: #777;"> <span style="color: #333;">Fraktalternativ:</span> {carrier}<br><br> <span style="font-family: 'Montserrat', sans-serif; font-weight: 700;color: #333;">Betalning:</span> {payment} </span> </span></td>
                <td style="padding: 7px 0;" width="10">&nbsp;</td>
                </tr>
                </tbody>
                </table>
                </td>
            </tr>

            <!-- Padding -->
            <tr>
                <td class="space_footer" style="padding: 0!important;">&nbsp;</td>
            </tr>

            <!-- Leverans och faktureringsadress -->
            <tr>
                <td style="padding: 7px 0;">
                <table class="table" style="width: 90%; margin-left: auto; margin-right: auto;">
                <tbody>
                <tr>
                <td class="box address" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;" width="310">
                <table class="table" style="width: 100%;">
                <tbody>
                <tr>
                <td style="padding: 7px 0;" width="10">&nbsp;</td>
                <td style="padding: 7px 0;">
                <p data-html-only="1" style="font-family: 'Montserrat', sans-serif; border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: initial; font-weight: 400; font-size: 18px; padding-bottom: 10px;">Leveransadress</p>
                <span size="2" face="Open-sans, sans-serif" color="#555454" style="color: #555454; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: small;"><span data-html-only="1" style="color: #777;"> {delivery_block_html} </span> </span></td>
                <td style="padding: 7px 0;" width="10">&nbsp;</td>
                </tr>
                </tbody>
                </table>
                </td>
                <td class="space_address" style="padding: 7px 0;" width="20">&nbsp;</td>
                <td class="box address" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;" width="310">
                <table class="table" style="width: 100%;">
                <tbody>
                <tr>
                <td style="padding: 7px 0;" width="10">&nbsp;</td>
                <td style="padding: 7px 0;">
                <p data-html-only="1" style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: initial; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 18px; padding-bottom: 10px;">Fakturaadress</p>
                <span size="2" face="Open-sans, sans-serif" color="#555454" style="color: #555454; font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: small;"><span data-html-only="1" style="color: #777;"> {invoice_block_html} </span> </span></td>
                <td style="padding: 7px 0;" width="10">&nbsp;</td>
                </tr>
                </tbody>
                </table>
                </td>
                </tr>
                </tbody>
                </table>
                </td>
            </tr>

            <!-- Padding -->
            <tr>
                <td class="space_footer" style="padding: 0!important;">&nbsp;</td>
            </tr>


            <div style="display: block; width: 90%;     margin: 0.2em 7em 0.8em 2em; font-size: 0.8em;">
                <p style="    margin-left: 2em;
                font-family: 'Montserrat', sans-serif; font-weight: 400; color: rgba(0, 0, 0, 0.548);">Du hittar mer information om din order under <a style="text-decoration: none; color: rgb(0, 0, 68);" href="{my_account_url}">mitt konto</a> i vår butik. Om du har frågor eller funderingar kring din beställning, skicka mail till info@swedron.se eller ring in till växeln: 031-XXXXXXX (Helfria vardagar 8-17)</p><p style="    margin-left: 2em;
                font-family: 'Montserrat', sans-serif; font-weight: 400; color: rgba(0, 0, 0, 0.548);">Om du vill ha mer information kring villkoren för ditt köp vänligen läs våra <a style="text-decoration: none; color: rgb(0, 0, 68);" href="https://www.swedron.se/sv/content/5-forsaljningsvillkor">försäljningsvillkor</a></p>
            </div>
            <hr style="width: 92%; margin-bottom: 0;
            color: rgba(0, 0, 0, 0.288);
            ">
            <a href="https://www.swedron.se" style="margin-left: 2em;
            font-family: 'Montserrat', sans-serif; font-weight: 400; color: rgba(0, 0, 0, 0.548); margin-top: 0; padding-top: 0; text-decoration: none;"><p style="color: rgb(0, 0, 68); margin-left: 3em;">Swedron Sverige AB</p></a>
        </div>
    </div>
</span>
</tbody>
</html>

              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console