mirror of
https://github.com/FranP-code/Frist-actual-form.git
synced 2025-10-12 23:53:02 +00:00
Hechas las bases del CSS
This commit is contained in:
11
index.html
11
index.html
@@ -5,13 +5,14 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Formulario</title>
|
||||
<link rel="stylesheet" href="./styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<form action="backEnd.php" method="POST">
|
||||
<input type="text" placeholder="Name" name="name" required>
|
||||
<input type="email" placeholder="E-mail" name="electronic-mail" required>
|
||||
<textarea placeholder="Message" name="message" required minlength="35"></textarea>
|
||||
<input type="submit" placeholder="Enviar" name="submit" required>
|
||||
<form action="backEnd.php" method="POST" class="form">
|
||||
<input type="text" placeholder="Name" name="name" required class="name">
|
||||
<input type="email" placeholder="E-mail" name="electronic-mail" required class="email">
|
||||
<textarea placeholder="Message" name="message" required minlength="35" class="message"></textarea>
|
||||
<input type="submit" placeholder="Enviar" name="submit" required class="submit">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
32
styles.css
32
styles.css
@@ -0,0 +1,32 @@
|
||||
.form {
|
||||
display: grid;
|
||||
grid-template-columns: 200px 200px 200px;
|
||||
grid-template-rows: repeat(200px 4 0px);
|
||||
width: 400px;
|
||||
height: auto;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.name {
|
||||
grid-column: 1/3;
|
||||
background-color: #0e93ff99;
|
||||
border: 1px solid #0e93ff;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.email {
|
||||
grid-column: 1/3;
|
||||
background-color: #fffb0e99;
|
||||
border: 1px solid #c7c400;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.message {
|
||||
grid-column: 1/3;
|
||||
background-color: #ff0e0e99;
|
||||
border: 1px solid #ff0e0e;
|
||||
}
|
||||
|
||||
.submit {
|
||||
grid-column: 1/3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user