<main>
<h1> Date Picker</h1>
<input type="date">
</main>
@import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap");
input {
border: none;
border-radius: 5px;
min-height: 50px;
width: 100%;
padding: 0 15px;
font-size: 18px;
cursor: pointer;
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background-image:linear-gradient(to right, rgb(182, 244, 146), rgb(51, 139, 147));
background-attachment: fixed;
height: 100vh;
display: grid;
justify-content: center;
align-content: center;
grid-template-columns: minmax(150px, 440px);
font-family: "Montserrat", sans-serif;
}
main {
text-align: center;
padding: 20px;
}
h1 {
margin-bottom: 20px;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.