Skip to content

Commit 4ce9fac

Browse files
committed
ch. 78: implementing border radius
1 parent 95add25 commit 4ce9fac

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

starter/05-Design/style.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ h2 {
5656
text-transform: uppercase;
5757
font-weight: 500;
5858
display: inline-block;
59+
/* simply has to be g.t. the height of the element */
60+
border-radius: 1000px;
5961
}
6062

6163
.btn:hover,
@@ -73,6 +75,10 @@ h2 {
7375
padding: 8px 12px;
7476
}
7577

78+
img {
79+
border-radius: 12px;
80+
}
81+
7682
/* ------------------------ */
7783
/* COMPONENT STYLES */
7884
/* ------------------------ */
@@ -131,6 +137,7 @@ img {
131137
background-color: #087f5b;
132138
color: #fff;
133139
padding: 24px;
140+
border-radius: 12px;
134141
}
135142

136143
.testimonial-box {
@@ -153,6 +160,12 @@ img {
153160
/* CHAIRS */
154161
.chair {
155162
box-shadow: 0 20px 30px 0px rgba(0, 0, 0, 0.07);
163+
border-radius: 12px;
164+
}
165+
166+
.chair img {
167+
border-bottom-left-radius: 0;
168+
border-bottom-right-radius: 0;
156169
}
157170

158171
.chair-box {

0 commit comments

Comments
 (0)