Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created December 29, 2020 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/cc8772c150e9d819cdc19182faa42299 to your computer and use it in GitHub Desktop.
Save codecademydev/cc8772c150e9d819cdc19182faa42299 to your computer and use it in GitHub Desktop.
Codecademy export
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Properties</title>
<link href="styles.css" type="text/css" rel="stylesheet">
</head>
<body>
<h1>CSS Properties</h1>
<p>Below are some of my favorite CSS Properties!</p>
<table>
<thead>
<tr>
<th>Property Name</th>
<th>Property Function</th>
<th>Output</th>
</tr>
</thead>
<tbody>
<tr>
<td>background-color</td>
<td>sets the background color of an element</td>
<td id="background-color">text</td>
</tr>
<tr>
<td>border</td>
<td>sets the border of an element</td>
<td id="border">text</td>
</tr>
<tr>
<td>color</td>
<td>sets the foreground color of an element</td>
<td id="color">text</td>
</tr>
<tr>
<td>font-family</td>
<td>changes the font of an element</td>
<td id="font-family">text</td>
</tr>
<tr>
<td>text-align</td>
<td>aligns the text of an element relative to the sides</td>
<td id="text-align">text</td>
</tr>
<tr>
<td>text-decoration</td>
<td>decorates the text of an element</td>
<td id="text-decoration">text</td>
</tr>
<tr>
<td>text-transform</td>
<td>transforms the text of an element</td>
<td id="text-transform">text</td>
</tr>
</tbody>
</table>
</body>
</html>
body {
background-color: aliceblue;
}
h1, p {
color: darkslategrey;
text-align: center;
}
table, th, td {
border: 2px solid dimgrey;
border-collapse: collapse;
text-align: center;
}
th, td {
padding: 5px;
}
#background-color {
background-color: lightpink;
}
#border {
border: 2px dotted blue;
}
#color {
color: purple;
}
#font-family {
font-family: "Courier New";
}
#text-align {
text-align: right;
}
#text-decoration {
text-decoration: orange underline;
}
#text-transform {
text-transform: uppercase;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment