-
Notifications
You must be signed in to change notification settings - Fork 5
/
product1.css
94 lines (85 loc) · 1.49 KB
/
product1.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#products-container{
display: flex;
}
label{
font-weight: bold;
margin-left:30px;
}
.filter{
width: 200px;
/* background-color: rgb(127, 125, 125); */
background-color: white;
}
select{
width: 200px;
margin-left : 30px;
margin-top: 10px;
padding:10px;
margin-bottom: 40px;
}
*{
margin:0px;
}
h1{
text-align: center;
font-size: 50px;
}
input{
height:40px;
width:500px;
font-size: 30px;
}
.container{
/* border: 1px solid green; */
display: grid;
grid-template-columns: repeat(3,1fr);
gap:20px;
margin:auto;
width:70%;
margin-bottom: 20px;
}
.container>div>img{
width:90%;
height:60%;
}
.container>div{
border-radius: 10px;
text-align: center;
font-size: 20px;
}
.container>div>h3{
text-transform: uppercase;
font-size: 20px;
margin:5px 10px;
}
.container>div>h4{
margin:5px 10px;
}
.container>div>button{
background-color: rgb(138, 27, 150);
color:white;
width:200px;
border-radius: 10px;
text-align: center;
font-size: 20px;
cursor:pointer;
border:none;
padding:5px;
margin:5px 10px;
}
.container>div>button:hover{
background-color: teal;
}
@media all and (min-width:701px) and (max-width:1000px) {
.container{
grid-template-columns: repeat(2,1fr);
}
.container>div{
margin:auto;
}
}
@media screen and (min-width:100px) and (max-width:700px) {
.container{
grid-template-columns: repeat(1,1fr);
}
}