Skip to content

Commit ec5f58c

Browse files
committed
foundations done
1 parent e567c8a commit ec5f58c

File tree

7 files changed

+67
-16
lines changed

7 files changed

+67
-16
lines changed

foundations/02-class-id-selectors/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
</head>
1010
<body>
1111
<p>Number 1 - I'm a class!</p>
12-
<div>Number 2 - I'm one ID.</div>
13-
<p>Number 3 - I'm a class, but cooler!</p>
14-
<div>Number 4 - I'm another ID.</div>
12+
<div id="two">Number 2 - I'm one ID.</div>
13+
<p class="three">Number 3 - I'm a class, but cooler!</p>
14+
<div class="four">Number 4 - I'm another ID.</div>
1515
<p>Number 5 - I'm a class!</p>
1616
</body>
1717
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
p{
2+
background-color: lightcoral;
3+
font-family: Verdana, sans-serif;
4+
}
5+
#two
6+
{
7+
color:blue;
8+
font-size:36px;
9+
}
10+
11+
.three{
12+
font-size: 24px;
13+
}
14+
15+
.four {
16+
background-color: lightgreen;
17+
font-size: 24px;
18+
font-weight: bold;
19+
}

foundations/03-grouping-selectors/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<link rel="stylesheet" href="style.css">
99
</head>
1010
<body>
11-
<button>Click Me!</button>
12-
<button>No, Click Me!</button>
11+
<button class="one">Click Me!</button>
12+
<button class="two">No, Click Me!</button>
1313
</body>
1414
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.one, .two {
2+
font-size: 28px;
3+
font-family: helvetica, 'Times New Roman', sans-serif;
4+
}
5+
6+
.one{
7+
background-color: black;
8+
color: white;
9+
}
10+
11+
.two{
12+
color: yellow;
13+
14+
}
15+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.avatar.proportioned{
2+
width: 300px;
3+
height: auto;
4+
5+
}
6+
7+
.avatar.distorted{
8+
width: 200px;
9+
height: 400px;
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
div p{
2+
background-color: yellow;
3+
color: red;
4+
font-size: 20px;
5+
text-align: center;
6+
7+
}

foundations/06-cascade-fix/style.css

+11-11
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ body{
22
font-family:Arial, Helvetica, sans-serif
33
}
44

5+
.para {
6+
font-size: 22px;
7+
}
8+
59
.para,
610
.small-para {
711
color: hsl(0, 0%, 0%);
@@ -13,8 +17,10 @@ body{
1317
font-weight: 800;
1418
}
1519

16-
.para {
17-
font-size: 22px;
20+
.button {
21+
background-color: rgb(255, 255, 255);
22+
color: rgb(0, 0, 0);
23+
font-size: 20px;
1824
}
1925

2026
.confirm {
@@ -23,20 +29,14 @@ body{
2329
font-weight: bold;
2430
}
2531

26-
.button {
27-
background-color: rgb(255, 255, 255);
32+
div.text {
2833
color: rgb(0, 0, 0);
29-
font-size: 20px;
34+
font-size: 22px;
35+
font-weight: 100;
3036
}
3137

3238
.child {
3339
color: rgb(0, 0, 0);
3440
font-weight: 800;
3541
font-size: 14px;
3642
}
37-
38-
div.text {
39-
color: rgb(0, 0, 0);
40-
font-size: 22px;
41-
font-weight: 100;
42-
}

0 commit comments

Comments
 (0)