Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created October 18, 2020 17:31
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/55c56b009ce131633da30ae4b63cb667 to your computer and use it in GitHub Desktop.
Save codecademydev/55c56b009ce131633da30ae4b63cb667 to your computer and use it in GitHub Desktop.
Codecademy export
<!DOCTYPE html>
<html>
<head>
<title>
CSS Visual Rule
</title>
<link href="./styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1>CSS Visual Rule</h1>
<table>
<thead>
<th>Properties</th>
<th>Description</th>
</thead>
<tbody>
<tr class="row1">
<td>font-family</td>
<td>Defines the typeface of an element</td>
</tr>
<tr class="row2">
<td>font-size</td>
<td>Controls the size of text displayed</td>
</tr>
<tr class="row3">
<td>font-weight</td>
<td>Defines how thin or thick text is displayed</td>
</tr>
<tr class="row4">
<td>text-align</td>
<td>Places text in the left, right, or center of its parent container</td>
</tr>
<tr class="row5">
<td>color</td>
<td>Defines the color of the text</td>
</tr>
<tr class="row6">
<td>background-color</td>
<td>Defines the color behind the text</td>
</tr>
<tr class="row7">
<td>opacity</td>
<td>Make an element transparent</td>
</tr>
<tr class="row8">
<td>background-image</td>
<td>Set the background of an element to an image</td>
</tr>
<tr class="row9">
<td>!important</td>
<td>Will override any style</td>
</tr>
</tbody>
</table>
</body>
</html>
body{
background-color: Azure;
color: brown;
text-align: center;
font-family: monospace;
}
th{
font-weight: bold;
font-size: 20px;
}
table, th, td{
border: 1px solid black;
border-collapse: collapse;
padding: 5px;
background-color: Beige;
}
h1{
color: Burlywood;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment