-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathE-commerce.css
More file actions
93 lines (82 loc) · 1.44 KB
/
Copy pathE-commerce.css
File metadata and controls
93 lines (82 loc) · 1.44 KB
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
*{
font-family: sans-serif;
}
body{
margin: 0px;
background-color: antiquewhite;
}
nav{
height: 80px;
padding: 10px;
box-shadow: rgba(0,0,0,0.35) 20px 15px 20px;
position: fixed;
top: 0;
left: 0;
right: 0;
background-color: cornsilk;
display: flex;
align-items: center;
gap: 10px;
flex-direction: row;
}
nav > img{
height: 100%;
aspect-ratio: 1/1;
object-fit: cover;
border-radius: 50%;
}
#content{
margin-block: 160px;
display:flex;
flex-direction: column;
align-items: center;
}
#cart, #contact-us{
justify-self: end;
}
#spacer{
flex: 1;
}
main{
margin: 50px;
}
#input{
width: 100%;
max-width: 500px;
padding: 0px;
border-radius: 8px;
border: 1px solid #ccc;
box-shadow: rgba(0,0,0,0.35) 0px 5px 30px;
}
#input input{
padding: 10px;
border: none;
border-radius: 8px;
width: 100%;
box-sizing: border-box;
height: 40px;
}
.product {
max-width: 200px;
border: 1px solid #ccc;
border-radius: 8px;
display: grid;
grid-template-rows: auto 1fr auto;
}
.product img{
width: 100%;
aspect-ratio: 1.5;
object-fit: cover;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
#prod{
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr ;
max-width: 1000px;
margin-inline: auto;
gap: 50px;
}
.product h2, .product p, .product button{
margin: 10px 10px;
}