Skip to content

Commit 9d11cc5

Browse files
committed
Making Responsive
1 parent 99646e8 commit 9d11cc5

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed
File renamed without changes.

Survey Form/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ <h2>Survey Form</h2>
2727
<option value="other">Other</option>
2828
</select>
2929

30-
<label>Choose your catagory?</label>
31-
<div id="catagory">
32-
<label><input type="radio" name="catagory">Web Development</label>
33-
<label><input type="radio" name="catagory">App Development</label>
34-
<label><input type="radio" name="catagory">Artificial Intelligence</label>
30+
<label>Choose your category?</label>
31+
<div id="category">
32+
<label><input type="radio" name="category">Web Development</label>
33+
<label><input type="radio" name="category">App Development</label>
34+
<label><input type="radio" name="category">Artificial Intelligence</label>
3535
</div>
3636

3737
<label>Check known Languages and Framworks</label>

Survey Form/style.css

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ h2 {
1616
margin-bottom: 20px;
1717
text-decoration: underline;
1818
}
19+
1920
.mainBody {
2021
width: 70vw;
2122
background-color: white;
@@ -29,7 +30,9 @@ label {
2930
margin-bottom: 10px;
3031
}
3132

32-
.mainBody input,select ,textarea{
33+
.mainBody input,
34+
select,
35+
textarea {
3336
width: 95%;
3437
margin-bottom: 20px;
3538
border: 1px solid black;
@@ -39,17 +42,18 @@ label {
3942
font-family: inherit;
4043
}
4144

42-
#catagory {
45+
#category {
4346
margin: 15px 0px 30px 0px;
4447
}
4548

46-
#catagory input[type="radio"],input[type="checkbox"]{
49+
#category input[type="radio"],
50+
input[type="checkbox"] {
4751
display: inline-block;
4852
width: auto;
4953
margin-right: 8px;
5054
}
5155

52-
#catagory label {
56+
#category label {
5357
font-size: 14px;
5458
margin: 0px;
5559
height: 22px;
@@ -58,7 +62,8 @@ label {
5862
#languages {
5963
margin-bottom: 30px;
6064
}
61-
#languages label{
65+
66+
#languages label {
6267
margin: 0px;
6368
height: 30px;
6469
}
@@ -76,4 +81,10 @@ label {
7681
border-radius: 8px;
7782
border: none;
7883
padding: 10px;
84+
}
85+
86+
@media screen and (max-width: 768px) {
87+
.mainBody {
88+
width: 95vw;
89+
}
7990
}

0 commit comments

Comments
 (0)