Skip to content

Instantly share code, notes, and snippets.

@bmackenty
Created September 12, 2024 09:43
Show Gist options
  • Select an option

  • Save bmackenty/673cb813dfd2cfb0b8ffe4a144be8e59 to your computer and use it in GitHub Desktop.

Select an option

Save bmackenty/673cb813dfd2cfb0b8ffe4a144be8e59 to your computer and use it in GitHub Desktop.
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
min-height: 100vh;
}
header {
background-color: #333;
color: white;
padding: 20px;
text-align: center;
}
nav {
background-color: #444;
}
nav ul {
list-style-type: none;
display: flex;
justify-content: center;
padding: 10px;
}
nav ul li {
margin: 0 15px;
}
nav ul li a {
color: white;
text-decoration: none;
}
nav ul li a:hover {
text-decoration: underline;
}
main {
flex: 1;
padding: 20px;
background-color: #f4f4f4;
}
footer {
background-color: #333;
color: white;
text-align: center;
padding: 10px;
}
/* Styles for input types */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
width: 100%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 16px;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
outline: none;
border-color: #666;
background-color: #eef;
}
button,
input[type="submit"] {
background-color: #333;
color: white;
padding: 10px 20px;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
}
button:hover,
input[type="submit"]:hover {
background-color: #555;
}
input[type="checkbox"],
input[type="radio"] {
margin-right: 10px;
}
label {
font-size: 16px;
}
input[type="range"] {
width: 100%;
margin: 10px 0;
}
select {
width: 100%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 4px;
background-color: white;
font-size: 16px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment