Pen Settings



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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


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


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.


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.


                <div class="container">
  <h2 class="form-title">Preencha os dados abaixo</h2>
  <form action="" class="form">
    <div class="form-body">
       <div class="form-field">
      <label for="nome">Nome:</label>
      <input id="nome" type="text">
    <div class="form-field">

      <label for="email">E-mail:</label>
      <input id="email" type="email">
    <div class="form-field">
      <label for="whatsapp">WhatsApp:</label>
      <input id="whatsapp" type="phone">
    <button type="submit">Enviar</button>


                /*Estilos padrão*/
body {
  font-family: Arial, Helvetica, sans-serif;

/* Reiniciando as margens dos títulos */
h6 {
  margin: 0;
  padding: 0;

.container {
  border: 1px solid #ccc;
  border-radius: 10px;

.form {
  display: flex;
  flex-direction: column; /*Definindo a direção do layout para o modo vertical */

/*Container onde colocamos os grupos de campos*/
.form .form-body {
  display: flex;
  flex: 1;
  flex-wrap: wrap;

.form-title {
  margin: 20px;

/* Este elemento está dentro de um container FLEX e também é um container FLEX. Se não fosse um container, não precisaria do 'display: flex' */
.form .form-field {
  display: flex;
  flex: 1;
  margin: auto 20px;
  margin-bottom: 10px;
  /*Como a direção deste container FLEX é a padrão (row), o align-items alinha os itens na vertical. Neste caso, é responsável por alinhar verticalmente as labels com os campos*/
  align-items: center;

.form .form-field label {
  color: #999;
  min-width: 80px;
.form .form-body .form-field input {
  flex: 1;
  border: 1px solid #999;
  margin-left: 8px;
  border-radius: 8px;
  padding: 10px;

.form button[type="submit"] {
  border-radius: 5px;
  background: #000;
  padding: 10px 20px;
  color: #fff;
  border: none;
  margin-right: 20px;
  margin-bottom: 20px;

  /*Definição de transação padrão*/
  transition: all 300ms;

  /*Alinha somente este alimento*/
  align-self: flex-end;
  cursor: pointer;

.form button[type="submit"]:hover {
  transform: scale(1.1);

@media screen and (max-width: 728px) {