Skip to content

Instantly share code, notes, and snippets.

@Jursdotme
Last active August 29, 2015 14:08
Show Gist options
  • Save Jursdotme/37bccb9e9dd71cce0181 to your computer and use it in GitHub Desktop.
Save Jursdotme/37bccb9e9dd71cce0181 to your computer and use it in GitHub Desktop.
Standard Kontaktformular
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
@import url(https://fonts.googleapis.com/css?family=Roboto:400,400italic,700,700italic);
body {
margin: 0;
padding: 0;
min-width: 100%;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
td {
padding: 0;
vertical-align: top;
}
.spacer,
.border {
font-size: 1px;
line-height: 1px;
}
img {
border: 0;
-ms-interpolation-mode: bicubic;
}
.image {
font-size: 0;
Margin-bottom: 27px;
}
.image img {
display: block;
}
.logo img {
display: block;
}
strong {
font-weight: bold;
}
h1,
h2,
h3,
p,
ol,
ul,
li {
Margin-top: 0;
}
ol,
ul,
li {
padding-left: 0;
}
.btn a {
mso-hide: all;
}
blockquote {
Margin-top: 0;
Margin-right: 0;
Margin-bottom: 0;
padding-right: 0;
}
.column-top {
font-size: 20px;
line-height: 20px;
}
.column-bottom {
font-size: 3px;
line-height: 3px;
}
.column {
text-align: left;
}
.contents {
width: 100%;
}
.padded {
padding-left: 20px;
padding-right: 20px;
}
.wrapper {
background-color: #fefefe;
width: 100%;
min-width: 620px;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
table.wrapper {
table-layout: fixed;
}
.one-col,
.two-col,
.three-col {
Margin-left: auto;
Margin-right: auto;
width: 600px;
}
.one-col p,
.one-col ol,
.one-col ul {
Margin-bottom: 27px;
}
.two-col p,
.two-col ol,
.two-col ul {
Margin-bottom: 24px;
}
.two-col .image {
Margin-bottom: 24px;
}
.two-col .column-bottom {
font-size: -4px;
line-height: -4px;
}
.two-col .column {
width: 300px;
}
.three-col p,
.three-col ol,
.three-col ul {
Margin-bottom: 21px;
}
.three-col .image {
Margin-bottom: 21px;
}
.three-col .column-bottom {
font-size: -1px;
line-height: -1px;
}
.three-col .column {
width: 200px;
}
@media only screen and (max-width: 620px) {
[class*=wrapper] {
min-width: 320px !important;
width: 100%!important;
}
[class*=wrapper] .one-col,
[class*=wrapper] .two-col,
[class*=wrapper] .three-col {
width: 320px !important;
}
[class*=wrapper] .column {
display: block;
float: left;
width: 320px !important;
}
[class*=wrapper] .padded {
padding-left: 20px !important;
padding-right: 20px !important;
}
[class*=wrapper] .full {
display: none;
}
[class*=wrapper] .block {
display: block !important;
}
[class*=wrapper] .hide {
display: none !important;
}
[class*=wrapper] .image {
margin-bottom: 27px !important;
}
[class*=wrapper] .image img {
height: auto !important;
width: 100% !important;
}
}
.wrapper h1 {
font-weight: 400;
}
.wrapper h2 {
font-weight: 700;
}
.wrapper h3 {
font-style: italic;
font-weight: 700;
}
.wrapper p,
.wrapper ol,
.wrapper ul {
font-weight: 400;
letter-spacing: -0.01em;
}
.wrapper blockquote {
font-style: italic;
}
.two-col h2 {
letter-spacing: -0.028em;
}
.divider {
font-size: 4px;
line-height: 4px;
}
.contents .divider,
.footer .divider table {
Margin-bottom: 27px;
}
.divider .bull {
background-color: #cccccc;
border-radius: 2px;
display: inline-block;
font-size: 1px;
height: 4px;
line-height: 1px;
overflow: hidden;
width: 4px;
}
.email-top,
.email-bottom {
font-size: 54px;
line-height: 54px;
}
.column {
color: #353638;
}
.btn {
Margin-bottom: 27px;
}
.wrapper .btn a {
border: 1px solid #888888;
border-radius: 5px;
color: #888888;
display: inline-block;
font-size: 15px;
line-height: 24px;
padding: 12px 24px;
text-align: center;
text-decoration: none !important;
transition: border-color 0.2s, color 0.2s;
}
.wrapper .btn a:hover {
border-color: #353638 !important;
color: #353638 !important;
}
.wrapper h1,
.wrapper h2,
.wrapper h3,
.wrapper p,
.wrapper ol,
.wrapper ul,
.wrapper .btn a,
.wrapper .header td,
.wrapper .header .logo,
.wrapper .footer div {
font-family: Georgia, serif;
}
@media screen and (min-width: 0) {
.wrapper h1,
.wrapper h2,
.wrapper h3,
.wrapper p,
.wrapper ol,
.wrapper ul,
.wrapper .btn a,
.wrapper .header td,
.wrapper .header .logo,
.wrapper .footer div {
font-family: Roboto, Georgia, serif !important;
}
}
.wrapper a {
color: #289fd8;
text-decoration: underline;
}
.wrapper a:hover {
text-decoration: none !important;
}
.wrapper h1 {
font-size: 32px;
line-height: 42px;
Margin-bottom: 24px;
}
.wrapper h2 {
font-size: 22px;
line-height: 30px;
Margin-bottom: 16px;
}
.wrapper h3 {
font-size: 18px;
line-height: 26px;
Margin-bottom: 12px;
}
.wrapper h1 a,
.wrapper h2 a,
.wrapper h3 a {
color: #353638;
text-decoration: none;
}
.wrapper p,
.wrapper ol,
.wrapper ul {
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
.wrapper li {
Margin-bottom: 14px;
}
.wrapper ol {
Margin-left: 24px;
}
.wrapper ol li {
padding-left: 4px;
}
.wrapper ul {
margin-left: 18px;
}
.wrapper ul li {
padding-left: 9px;
}
.wrapper blockquote {
border-left: 4px solid #808080;
color: #808080;
Margin-left: 0;
padding-left: 17px;
}
.one-col .column table:nth-last-child(2) td h1:last-child,
.one-col .column table:nth-last-child(2) td h2:last-child,
.one-col .column table:nth-last-child(2) td h3:last-child,
.one-col .column table:nth-last-child(2) td p:last-child,
.one-col .column table:nth-last-child(2) td ol:last-child,
.one-col .column table:nth-last-child(2) td ul:last-child {
Margin-bottom: 27px;
}
.one-col p,
.one-col ol,
.one-col ul {
font-size: 17px;
line-height: 27px;
}
.two-col .column table:nth-last-child(2) td h1:last-child,
.two-col .column table:nth-last-child(2) td h2:last-child,
.two-col .column table:nth-last-child(2) td h3:last-child,
.two-col .column table:nth-last-child(2) td p:last-child,
.two-col .column table:nth-last-child(2) td ol:last-child,
.two-col .column table:nth-last-child(2) td ul:last-child {
Margin-bottom: 24px;
}
.two-col .column-bottom {
font-size: 6px;
line-height: 6px;
}
.two-col h1 {
font-size: 28px;
line-height: 36px;
Margin-bottom: 20px;
}
.two-col h2 {
font-size: 22px;
line-height: 30px;
Margin-bottom: 14px;
}
.two-col h3 {
font-size: 16px;
line-height: 24px;
Margin-bottom: 10px;
}
.two-col p,
.two-col ol,
.two-col ul {
font-size: 15px;
line-height: 24px;
}
.two-col ol {
Margin-left: 21px;
}
.two-col ol li {
padding-left: 3px;
}
.two-col ul {
Margin-left: 18px;
}
.two-col ul li {
padding-left: 6px;
}
.two-col li {
Margin-bottom: 12px;
}
.two-col .divider {
Margin-bottom: 24px;
}
.two-col blockquote {
border-left-width: 3px;
padding-left: 15px;
}
.two-col .btn {
Margin-bottom: 24px;
}
.two-col .btn a {
font-size: 13px;
line-height: 21px;
padding: 10px 18px;
}
.three-col .column table:nth-last-child(2) td h1:last-child,
.three-col .column table:nth-last-child(2) td h2:last-child,
.three-col .column table:nth-last-child(2) td h3:last-child,
.three-col .column table:nth-last-child(2) td p:last-child,
.three-col .column table:nth-last-child(2) td ol:last-child,
.three-col .column table:nth-last-child(2) td ul:last-child {
Margin-bottom: 21px;
}
.three-col .column-bottom {
font-size: 9px;
line-height: 9px;
}
.three-col h1 {
font-size: 24px;
line-height: 32px;
Margin-bottom: 16px;
}
.three-col h2 {
font-size: 16px;
line-height: 24px;
Margin-bottom: 12px;
}
.three-col h3 {
font-size: 14px;
line-height: 22px;
Margin-bottom: 8px;
}
.three-col p,
.three-col ol,
.three-col ul {
font-size: 13px;
line-height: 21px;
}
.three-col ul {
Margin-left: 16px;
}
.three-col ul li {
padding-left: 6px;
}
.three-col ol {
Margin-left: 18px;
}
.three-col ol li {
padding-left: 4px;
}
.three-col li {
Margin-bottom: 10px;
}
.three-col .divider {
Margin-bottom: 21px;
}
.three-col blockquote {
border-left-width: 2px;
padding-left: 13px;
}
.three-col .btn {
Margin-bottom: 21px;
}
.three-col .btn a {
font-size: 11px;
line-height: 19px;
padding: 8px 14px;
}
.header,
.footer {
Margin-left: auto;
Margin-right: auto;
width: 560px;
}
.header td {
color: #aaaaaa;
font-size: 24px;
}
.header .logo {
padding-bottom: 27px;
font-weight: bold;
font-size: 32px;
line-height: 42px;
color: #202020;
}
.header .logo a {
text-decoration: none;
color: #202020;
}
.footer div {
color: #bbbbbb;
font-size: 11px;
line-height: 17px;
Margin-bottom: 17px;
}
.footer div a {
color: #bbbbbb;
font-weight: 700;
text-decoration: none;
}
.footer div a:hover {
text-decoration: underline !important;
}
.footer .divider {
Margin-bottom: 10px;
}
.footer .divider table {
Margin-left: auto;
Margin-right: auto;
}
.footer .divider td.spacer {
width: 8px;
}
@media only screen and (max-width: 620px) {
[class*=wrapper] .one-col .column:last-child table:nth-last-child(2) td h1:last-child,
[class*=wrapper] .two-col .column:last-child table:nth-last-child(2) td h1:last-child,
[class*=wrapper] .three-col .column:last-child table:nth-last-child(2) td h1:last-child,
[class*=wrapper] .one-col .column:last-child table:nth-last-child(2) td h2:last-child,
[class*=wrapper] .two-col .column:last-child table:nth-last-child(2) td h2:last-child,
[class*=wrapper] .three-col .column:last-child table:nth-last-child(2) td h2:last-child,
[class*=wrapper] .one-col .column:last-child table:nth-last-child(2) td h3:last-child,
[class*=wrapper] .two-col .column:last-child table:nth-last-child(2) td h3:last-child,
[class*=wrapper] .three-col .column:last-child table:nth-last-child(2) td h3:last-child,
[class*=wrapper] .one-col .column:last-child table:nth-last-child(2) td p:last-child,
[class*=wrapper] .two-col .column:last-child table:nth-last-child(2) td p:last-child,
[class*=wrapper] .three-col .column:last-child table:nth-last-child(2) td p:last-child,
[class*=wrapper] .one-col .column:last-child table:nth-last-child(2) td ol:last-child,
[class*=wrapper] .two-col .column:last-child table:nth-last-child(2) td ol:last-child,
[class*=wrapper] .three-col .column:last-child table:nth-last-child(2) td ol:last-child,
[class*=wrapper] .one-col .column:last-child table:nth-last-child(2) td ul:last-child,
[class*=wrapper] .two-col .column:last-child table:nth-last-child(2) td ul:last-child,
[class*=wrapper] .three-col .column:last-child table:nth-last-child(2) td ul:last-child {
Margin-bottom: 27px !important;
}
[class*=wrapper] .email-top,
[class*=wrapper] .email-bottom {
font-size: 28px !important;
line-height: 28px !important;
}
[class*=wrapper] .header,
[class*=wrapper] .footer {
width: 280px !important;
}
[class*=wrapper] .logo img {
max-width: 280px!important;
height: auto!important;
}
[class*=wrapper] blockquote {
border-left-width: 4px !important;
margin-left: 0 !important;
padding-left: 14px !important;
}
[class*=wrapper] h1 {
font-size: 32px !important;
line-height: 42px !important;
margin-bottom: 24px !important;
}
[class*=wrapper] h2 {
font-size: 22px !important;
line-height: 30px !important;
margin-bottom: 16px !important;
}
[class*=wrapper] h3 {
font-size: 18px !important;
line-height: 26px !important;
margin-bottom: 12px !important;
}
[class*=wrapper] .one-col p,
[class*=wrapper] .two-col p,
[class*=wrapper] .three-col p,
[class*=wrapper] .one-col ol,
[class*=wrapper] .two-col ol,
[class*=wrapper] .three-col ol,
[class*=wrapper] .one-col ul,
[class*=wrapper] .two-col ul,
[class*=wrapper] .three-col ul {
font-size: 17px !important;
line-height: 27px !important;
margin-bottom: 27px !important;
}
[class*=wrapper] ol {
margin-left: 24px !important;
}
[class*=wrapper] ol li {
padding-left: 4px !important;
}
[class*=wrapper] ul {
margin-left: 19px !important;
}
[class*=wrapper] ul li {
padding-left: 9px !important;
}
[class*=wrapper] li {
margin-bottom: 14px !important;
}
[class*=wrapper] .divider {
margin-bottom: 27px !important;
}
[class*=wrapper] .btn {
margin-bottom: 27px !important;
}
[class*=wrapper] .btn a {
display: block !important;
font-size: 15px !important;
line-height: 24px !important;
padding: 12px 24px !important;
}
[class*=wrapper] .column-bottom {
font-size: 3px !important;
line-height: 3px !important;
}
[class*=wrapper] .first .column-bottom,
[class*=wrapper] .second .column-top,
[class*=wrapper] .three-col .second .column-bottom,
[class*=wrapper] .third .column-top {
display: none;
}
[class*=wrapper] .show {
display: block!important;
font-size: 1px;
line-height: 1px;
}
[class*=wrapper] .hide {
display: none!important;
}
}
</style>
<!--[if mso]>
<style>
.spacer, .column-top, .column-bottom {
mso-line-height-rule: exactly;
}
</style>
<![endif]-->
</head>
<body bgcolor="#fefefe" class=" emb-font-stack-">
<table class="wrapper">
<tr>
<td>
<center>
<div class="email-top">&nbsp;</div>
<table class="header">
<tr>
<td align="left">
<table>
<tr>
<td class="logo" align="left" id="emb-email-header">Kontaktformular</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</td>
</tr>
</table>
<table class="wrapper">
<tr>
<td>
<center>
<table class="one-col">
<tr>
<td class="column">
<div><div class="column-top">&nbsp;</div></div>
<table class="contents">
<tr>
<td class="padded">
<h2>Fra: [Navn] [Efternavn]</h2>
<h3>[Firmanavn]</h3>
[Besked]
<hr>
<p>[Firmanavn]<br>
[Adresse]<br>
[Postnummer] [By]</p>
<p>Tel: [Telefon]<br>
Email: <a href="mailto:[Email]">[Email]</a></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</td>
</tr>
</table>
</body>
</html>
<fieldset>
<p class="half">
<label for="text_field">Fornavn</label>
[text* Navn placeholder "Fornavn"]
</p>
<p class="half last">
<label for="text_field">Efternavn</label>
[text* Efternavn placeholder "Efternavn"]
</p>
<p class="full">
<label for="text_field">Firmanavn</label>
[text Firmanavn placeholder "Navnet på dit firma"]
</p>
<p class="full">
<label for="text_field">Adresse</label>
[text* Adresse]
</p>
<p class="one-third">
<label for="text_field">Postnr.</label>
[text* Postnummer]
</p>
<p class="two-thirds last">
<label for="text_field">By</label>
[text* By]
</p>
<p class="half">
<label for="text_field">Telefon nr.</label>
[tel* Telefon]
</p>
<p class="half last">
<label for="text_field">Email</label>
[email* Email]
</p>
<p class="full">
<label for="text_field">Din besked</label>
[textarea* Besked]
</p>
[submit]
</fieldset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment