Skip to content

Latest commit

 

History

History
101 lines (90 loc) · 1.87 KB

contact.md

File metadata and controls

101 lines (90 loc) · 1.87 KB
title permalink layout excerpt comments
Contact Form
/contact/
page
Contact Form
false
<style> form { /* Center the form on the page */ margin: 0 auto; width: 400px; /* Form outline */ padding: 1.5em; border: 1px solid #CCC; border-radius: 1em; }

ul { list-style: none; padding: 0; margin: 0; text-align: center }

form li + li { margin-top: 1em; }

label { /* Uniform size & alignment */ display: inline-block; width: 120px; text-align: justify; }

input, textarea { /* To make sure that all text fields have the same font settings By default, textareas have a monospace font */ font: 1em sans-serif;

/* Uniform text field size */ width: 400px; box-sizing: border-box; padding: 10px 15px;

/* Match form field borders */ border: 1px solid #999; }

input:focus, textarea:focus { /* Additional highlight for focused elements */ border-color: #000; }

textarea { /* Align multiline text fields with their labels */ vertical-align: top;

/* Provide space to type some text */ height: 5em; width: 25em; }

.button { /* Align buttons with the text fields / padding-left: 90px; / same size as the label elements */ }

button { /* This extra margin represent roughly the same space as the space between the labels and their text fields */ margin-left: 13em; } </style>

Name:

Email:

Message: <textarea name="message"></textarea>

Send