Skip to content
Open
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
10 changes: 9 additions & 1 deletion foundations/intro-to-css/01-css-methods/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Methods for Adding CSS</title>
<style>
p {
background-color: green;
color: white;
font-size: 18px;
}
</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: black;background-color: orange; font-size: 18px;">Inline Method</button>
</body>
</html>
11 changes: 11 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,11 @@
/* styles.css */

div {
background-color: red;
color: white;
font-size: 32px;
font-weight: bold;
text-align: center;

}