-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcart.css
More file actions
77 lines (65 loc) · 1.21 KB
/
cart.css
File metadata and controls
77 lines (65 loc) · 1.21 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
*{
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
text-decoration: none;
color: black;
}
html{
font-size: 62.5%;
}
main{
max-width: 1500px;
width: 80%;
margin: 30px auto;
display: flex;
flex-direction: column;
}
main .card{
height: 150px;
border: 1px solid lightgray;
margin: 20px;
display: flex;
}
main .card .images{
width: 20%;
}
main .card .images img{
width: 100%;
height: 100%;
object-fit: cover;
}
main .card .caption{
line-height: 3em;
margin-left: 30px;
position: relative;
width: 75%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
}
main .card .caption p{
font-size: 1.5rem;
}
del{
text-decoration: line-through;
}
main .card .caption .price{
position: absolute;
top: 5%;
right: 5%;
}
main .card .caption button{
background-color: red;
color: white;
padding: 1em;
border: none;
outline: none;
cursor: pointer;
border-radius: 3px;
margin-top: 2em;
font-weight: bold;
width: 30%;
}