Skip to content

Instantly share code, notes, and snippets.

@catherinepope
Created January 16, 2026 16:14
Show Gist options
  • Select an option

  • Save catherinepope/552cb2e01346418c39ea0a118ff7c6eb to your computer and use it in GitHub Desktop.

Select an option

Save catherinepope/552cb2e01346418c39ea0a118ff7c6eb to your computer and use it in GitHub Desktop.
CSS for Netlify form
.contact-form {
max-width: 600px;
margin: 0 auto;
padding: 30px;
font-family: Arial, sans-serif;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.form-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 8px;
}
input[type="text"],
input[type="email"],
textarea {
width: 100%;
padding: 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 16px;
box-sizing: border-box;
transition: border-color 0.3s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
outline: none;
border-color: #5cab9f;
}
textarea {
height: 120px;
resize: vertical;
}
.submit-btn {
padding: 12px 24px;
border: 1px solid #5cab9f;
background-color: #5cab9f;
color: white;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
margin-top: 10px;
transition: background-color 0.3s ease;
}
.submit-btn:hover {
background-color: #4a9a8e;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment