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 http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Formulario</title>
|
<title>Formulario</title>
|
||||||
|
<link rel="stylesheet" href="./styles.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<form action="backEnd.php" method="POST">
|
<form action="backEnd.php" method="POST" class="form">
|
||||||
<input type="text" placeholder="Name" name="name" required>
|
<input type="text" placeholder="Name" name="name" required class="name">
|
||||||
<input type="email" placeholder="E-mail" name="electronic-mail" required>
|
<input type="email" placeholder="E-mail" name="electronic-mail" required class="email">
|
||||||
<textarea placeholder="Message" name="message" required minlength="35"></textarea>
|
<textarea placeholder="Message" name="message" required minlength="35" class="message"></textarea>
|
||||||
<input type="submit" placeholder="Enviar" name="submit" required>
|
<input type="submit" placeholder="Enviar" name="submit" required class="submit">
|
||||||
</form>
|
</form>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</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