Skip to content

Instantly share code, notes, and snippets.

@marsty5
Created August 28, 2017 13:06
Show Gist options
  • Save marsty5/d08c95c1bf375fc4c29acd212584d16e to your computer and use it in GitHub Desktop.
Save marsty5/d08c95c1bf375fc4c29acd212584d16e to your computer and use it in GitHub Desktop.
Example of a static website
<html>
<head>
<link href="style.css" rel="stylesheet">
<title> Dogs </title>
</head>
<body>
<header> I'm a main header </header>
<div id="banner"> Big-ass picture with call-to-action</div>
<h1 id="main-title"> This is the beginning </h1>
<p><a href="https://google.com"> I'm anything </a></p>
<h1> This is the middle </h1>
<div class="my-list">
<ul> My songs
<li> Song 1 </li>
<li> Song 2 </li>
</ul>
</div>
<br>
<div class="my-list">
<ul id="my-movies"> My movies
<li> Movie 1 </li>
<li> Movie 2 </li>
<li> Movie 3 </li>
</ul>
</div>
<h1> This is the end </h1>
<footer> Made in Master 21 </footer>
</body>
</html>
body {
background-color: pink;
}
header {
font-size: 40px;
}
#banner {
text-align: center;
background-image: url("http://s7d2.scene7.com/is/image/PetSmart/PB1201_STORY_CARO-Authority-HealthyOutside-DOG-20160818?$PB1201$");
background-size: cover;
padding: 150px;
color: white;
height: 400px;
text-shadow: 1px 1px 5px black;
}
h1 {
background-color: yellow;
}
/* I can style an id by putting a hashtag in front of its name */
#main-title {
background-color: purple;
}
/* I can style a class by putting a dot in front of its name */
.blue-color {
color: blue;
}
ul {
list-style-type: none;
}
li {
color: green;
}
#my-movies li, #my-movies{
color: blue;
}
/*#my-movies li {
color: blue;
}*/
.my-list {
border: 1px black solid;
/* padding: top right bottom left;
or
padding: top-and-bottomg right-and-left;
*/
/* padding: 10px 300px 10px 300px; */
padding: 10px 300px;
margin-left: 100px;
margin-right: 100px;
margin-top: 50px;
}
footer {
background-color: black;
color: white;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment