Skip to content

Commit 221d10f

Browse files
Merge pull request #1574 from ak-sh-at/favicon
favicon site responsive now
2 parents 8c1b43d + 752f606 commit 221d10f

2 files changed

Lines changed: 15 additions & 22 deletions

File tree

Projects/Favicon Fetcher/index.html

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,12 @@
1414
<body>
1515
<h2>Favicon Fetcher</h2>
1616

17-
<br/><br/>
18-
19-
<label>
20-
21-
<input type="text" placeholder="Enter a URL" id="input">&nbsp;&nbsp;
22-
<input type="button" value="Try it Grab!" style="background-color: white; height: 60px; width: 170px;" id="grab"><br/><br/><br/><br/>
23-
<img id="image" style="margin-left: 180px; width: 80px; height: 80px;"><br/><br/><br/><br/>
17+
<input type="text" placeholder="Enter a URL" id="input">
18+
19+
<input type="button" value="Try it Grab!" style="background-color: white; height: 60px; width: 170px;" id="grab">
20+
21+
<img id="image" style=" width: 90px; height: 90px; ">
2422

25-
</label>
26-
2723
<script src="script.js"></script>
2824

2925
</body>

Projects/Favicon Fetcher/styles.css

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,49 +5,40 @@
55
font-family: "roboto";
66
}
77

8-
9-
108
html,body{
119
height: 100%;
1210
}
1311

1412
body{
1513
display: flex;
14+
flex-direction: column;
1615
align-items: center;
17-
justify-content: center;
16+
justify-content: space-evenly;
1817
background-image: url('images/background.avif');
1918
}
2019

2120
h2 {
22-
position: absolute;
2321
top: 0;
24-
padding-top: 100px;
2522
color: rgba(9, 6, 6, 0.567);
2623
font-size: 80px;
2724
text-align: center;
2825
font-family: roboto;
2926

3027
}
3128

32-
3329
img{
3430
size:48px;
3531
margin-right: 1.2rem;
3632
}
3733

38-
label{
39-
position: relative;
40-
}
41-
42-
label input{
34+
input{
4335
font-size: 1.5rem;
4436
padding: 1rem ;
4537
border-radius: 0.2rem;
4638
height: 60px;
4739
width: 350px;
4840
}
4941

50-
5142
input[type='button']:hover{
5243
cursor: pointer;
5344
}
@@ -57,5 +48,11 @@ input[type='button']:hover{
5748
border-style: solid;
5849
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.368);
5950
font-family: roboto;
60-
margin-top: 100px;
51+
}
52+
53+
@media(max-width:373px)
54+
{
55+
body{
56+
width:fit-content;
57+
}
6158
}

0 commit comments

Comments
 (0)