Skip to content

Commit bbd2366

Browse files
Update style.css
1 parent c86d5a9 commit bbd2366

File tree

1 file changed

+91
-8
lines changed

1 file changed

+91
-8
lines changed

CSS Background/style.css

Lines changed: 91 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,8 @@ li {
6262
padding: 0 0 0 20px;
6363
}
6464

65-
/* Background (shorthand) */
66-
.Background_Shorthand {
67-
padding: 20px;
68-
height: auto;
69-
}
70-
71-
7265
/* --------------------------------------------- Background-color ------------------------------------------------- */
66+
7367
.Background-color {
7468
padding: 20px;
7569
height: auto;
@@ -81,7 +75,7 @@ p {
8175
}
8276

8377
h3 {
84-
padding-top: 10px;
78+
padding: 10px 0;
8579
}
8680

8781
.Color_Name {
@@ -143,3 +137,92 @@ h3 {
143137
border: 2px solid #000000;
144138
background-color: #529001;
145139
}
140+
141+
/*------------------------------------------- CSS Background-Image Property ----------------------------------------- */
142+
143+
.Background-image {
144+
padding: 20px;
145+
height: auto;
146+
}
147+
148+
.main {
149+
display: flex;
150+
justify-content: center;
151+
flex-wrap: wrap;
152+
gap: 10px;
153+
border: 2px solid black;
154+
margin-top: 20px;
155+
}
156+
157+
.main div {
158+
margin: 30px 30px;
159+
justify-content: space-between;
160+
border: 2px solid #000000;
161+
width: 200px;
162+
height: 200px;
163+
}
164+
165+
.BI-h3 {
166+
font-size: 16px;
167+
text-align: center;
168+
}
169+
170+
.None {
171+
background-color: aqua;
172+
background-image: none;
173+
}
174+
175+
.url {
176+
background-image: url('Shivam22.jpg');
177+
background-size: cover;
178+
}
179+
180+
.Conic-gradient {
181+
background-image: conic-gradient(red, yellow, green, blue, red);
182+
}
183+
184+
.Repeating-conic-gradient {
185+
background-image: repeating-conic-gradient(red 20deg,
186+
yellow 40deg,
187+
green 60deg);
188+
}
189+
190+
.Linear-gradient {
191+
background-image: linear-gradient(to right,
192+
violet,
193+
indigo,
194+
blue,
195+
green,
196+
yellow,
197+
orange,
198+
red);
199+
}
200+
201+
.Repeating-linear-gradient {
202+
background-image: repeating-linear-gradient(45deg,
203+
violet,
204+
indigo,
205+
blue,
206+
green,
207+
yellow,
208+
orange,
209+
red);
210+
}
211+
212+
.Radial-gradient {
213+
background-image: radial-gradient(circle, red, yellow, green, blue);
214+
}
215+
216+
.Repeating-radial-gradient {
217+
background-image: repeating-radial-gradient(circle,
218+
red,
219+
yellow 20px,
220+
green 40px);
221+
}
222+
223+
224+
/* *********************************** Background (shorthand) Property *********************************** */
225+
.Background_Shorthand {
226+
padding: 20px;
227+
height: auto;
228+
}

0 commit comments

Comments
 (0)