Skip to content

Instantly share code, notes, and snippets.

@sojohnnysaid
Last active January 19, 2021 22:57
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sojohnnysaid/cc919a82e1297ca915b41069a3eb2449 to your computer and use it in GitHub Desktop.
simple css example
<!DOCTYPE html>
<html>
<head>
<title>css example</title>
<!-- starting css rules -->
<style type="text/css">
/*css comment*/
button{
font-size: 17px;
background: lightgray;
padding: 25px;
}
button:hover{
color: white;
background: lightblue;
}
li{
font-size: 1000000000px;
}
li:first-child{
color: red;
font-style: italic;
font-size: 27px;
}
li:last-child:hover{
color: lightgreen;
cursor: default;
}
.bold{
font-weight: bold;
font-size: 25px;
}
li{
font-size: 21px;
}
</style>
<!-- end of css rules -->
</head>
<body>
<button>Click me</button>
<ul>
<li>one</li>
<li>two</li>
<li class="bold">three</li>
<li class="bold">four</li>
</ul>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment