Skip to content

Instantly share code, notes, and snippets.

@Karlina-Bytes
Last active August 29, 2015 14:14
Show Gist options
  • Save Karlina-Bytes/ee545f1756f9ffd91522 to your computer and use it in GitHub Desktop.
Save Karlina-Bytes/ee545f1756f9ffd91522 to your computer and use it in GitHub Desktop.
An example of how to include CSS with a "class" selector (using a style section).
<!-- myPage.html -->
<html>
<!-- Define style attributes in a style section. -->
<style>
.boxRounder {
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
background-color: #303030;
color: #ff9900;
padding: 1.0em;
}
</style>
<body>
<!-- Inject a style attribute with a class selector. -->
<div class="boxRounder">
Hello World!
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment