Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created September 22, 2020 08:30
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/063308387d32afce767e158e1cbda209 to your computer and use it in GitHub Desktop.
Save codecademydev/063308387d32afce767e158e1cbda209 to your computer and use it in GitHub Desktop.
Codecademy export
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Font Property</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<h1>CSS Font Reference</h1>
<h2>Font Property</h2>
<table>
<thead>
<tr>
<th>Property</th>
<th>Description</th>
<th>Values</th>
</tr>
</thead>
<tbody>
<tr>
<td>font-family</td>
<td class="italics">Specifies the font family for text</td>
<td>monospace, serif,..</td>
</tr>
<tr>
<td>font-size</td>
<td class="italics">Specifies the font size of text</td>
<td>small, medium, 18px,..</td>
</tr>
<tr>
<td>font-style</td>
<td class="italics">Specifies the font style for text</td>
<td>italic, oblique,..</td>
</tr>
<tr>
<td>font-variant</td>
<td class="italics">Specifies whether or not a text should be displayed in a small-caps font</td>
<td>small-caps, inherit,..</td>
</tr>
<tr>
<td>font-weight</td>
<td class="italics">Specifies the weight of a font</td>
<td>normal, bold,..</td>
</tr>
<tr>
<td>font-stretch</td>
<td class="italics">Specifies the width of a font</td>
<td>condensed, expanded,..</td>
</tr>
</tbody>
</table>
<p>&copy; Made By: Vishal</p>
</body>
</html>
body {
font-family: monospace;
background: #FDFC47; /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #24FE41, #FDFC47); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #24FE41, #FDFC47); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
h1, h2, p {
font-weight: bold;
text-align: center;
padding: 2%;
}
table {
border: 2px solid black;
width: 800px;
height: 300px;
margin: 0 auto;
font-weight: bold;
font-size: 16px;
border-spacing: 5px;
}
thead {
background-color: SpringGreen;
}
th {
padding: 10px;
}
td {
border-style: outset;
}
h1 {
text-decoration: underline;
}
p {
font-size: 18px;
margin-top: 60px;
}
.italics {
font-style: italic;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment