Skip to content

Commit c47b661

Browse files
committed
content overflow solved and CSS improved
1 parent 5efa4f6 commit c47b661

2 files changed

Lines changed: 42 additions & 11 deletions

File tree

Projects/Pincode checker/index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@
44
<meta charset="UTF-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<link rel="preconnect" href="https://fonts.googleapis.com">
8+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
9+
<link href="https://fonts.googleapis.com/css2?family=Kalam&display=swap" rel="stylesheet">
710
<title>Document</title>
811
<link rel="stylesheet" href="styles.css" />
912
</head>
1013
<body>
1114
<div class="container">
12-
<div class="row">
15+
<div class="row1">
1316
<div class="col-md-12">
1417
<div class="form-group">
15-
<label for="pincode">Pincode</label>
18+
<label for="pincode">Pincode: </label>
1619
<input
1720
type="text"
1821
id="pincode"

Projects/Pincode checker/styles.css

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,56 @@
11
body{
2-
text-align: center;
2+
height:90vh;
33
display: flex;
44
justify-content: center;
5+
align-items: center;
6+
text-align: center;
57
}
68
.container {
7-
background-color: #c2c2c2;
8-
margin: 20px;
9+
background-color:#d5f4e6;
910
padding: 30px;
10-
width: 40%;
11-
align-items: center;
11+
height:200px;
12+
width: 275px;
13+
display: flex;
14+
flex-direction: column;
15+
justify-content: space-evenly;
16+
border: 5px solid black;
17+
border-radius: 20px;
1218
}
1319
button{
14-
margin-top: 3%;
20+
background-color: lightgray;
21+
margin-top: 30px;
22+
font-size: medium;
23+
font-family: 'Kalam', cursive;
24+
letter-spacing: 2px;
1525
}
16-
label{
26+
button:hover{
27+
box-shadow: 2px 5px black;
28+
background-color: #618685;
29+
}
30+
label,#result{
1731
font-size: larger;
32+
font-family: 'Kalam', cursive;
33+
letter-spacing: 2px;
1834
}
1935
#result {
2036
margin-top: 20px;
2137
padding: 20px;
22-
/* background-color: #f2f2f2; */
2338
border-radius: 5px;
2439
}
25-
40+
#pincode{
41+
font-size: small;
42+
font-family: 'Kalam', cursive;
43+
letter-spacing: 2px;
44+
border-radius: 4px;
45+
}
46+
@media(max-width:245px) {
47+
.container{
48+
width:fit-content;
49+
}
50+
#pincode{
51+
width: 50%;
52+
}
53+
}
2654
.bg {
2755
background: url(https://i.ibb.co/87GbbFP/2799006.jpg) no-repeat;
2856
background-size: cover;

0 commit comments

Comments
 (0)