Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions foundations/intro-to-css/01-css-methods/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Methods for Adding CSS</title>

<!-- Internal CSS -->
<style>
p {
color: green;
}
</style>
</head>
<body>
<div>Style me via the external method!</div>
<p>I would like to be styled with the internal method, please.</p>
<button>Inline Method</button>
<button style="color: red;">Inline Method</button>
</body>
</html>
</html>
3 changes: 3 additions & 0 deletions foundations/intro-to-css/01-css-methods/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
div {
color: blue;
}
10 changes: 5 additions & 5 deletions foundations/intro-to-css/02-class-id-selectors/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<p>Number 1 - I'm a class!</p>
<div>Number 2 - I'm one ID.</div>
<p>Number 3 - I'm a class, but cooler!</p>
<div>Number 4 - I'm another ID.</div>
<p>Number 5 - I'm a class!</p>
<p class="odd">Number 1 - I'm a class!</p>
<div id="two">Number 2 - I'm one ID.</div>
<p class="odd cool">Number 3 - I'm a class, but cooler!</p>
<div id="four">Number 4 - I'm another ID.</div>
<p class="odd">Number 5 - I'm a class!</p>
</body>
</html>
24 changes: 23 additions & 1 deletion foundations/intro-to-css/02-class-id-selectors/style.css
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
/* Add CSS Styling */
/* All odd class elements */
.odd {
background-color: light pink;
font-family: verdana, DejaVu Sans, sans-serif;
}

/* The cooler one (Number 3) */
.cool {
font-size: 24px;

}

/* ID for Number 2 */
#two {
color: blue;
font-size: 36px;
}

/* ID for Number 4 */
#four {
background-color: lightgreen;
font-weight: bold;
}