Formularios Desde Cero con Apps Script, HTML y CSS | Episodio 3: Dale Estilo a Tu Primer Formulario HTML
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 20px;
display: flex;
justify-content: center;
}
form {
background-color: #fff;
padding: 20px 30px;
border-radius: 10px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
}
h2 {
text-align: center;
color: #01579B;
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 1px;
font-weight: bold;
color: #555;
}
input:not([type="radio"]), select {
width: calc(100% - 20px);
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
transition: border-color 0.5s;
}
input:not([type="radio"]):focus, select:focus {
border-color: #2962FF;
outline: none;
}
input[type="submit"] {
background: #448AFF;
border: 0;
color: white;
font-size: 14px;
cursor: pointer;
}
input[type="submit"]:hover {
background: #0D47A1;
}
</style>
Comentarios
Publicar un comentario