Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,26 @@

<head><!-- where all the meta data will go, like and files we need to include -->
<title>My Little Rainbow</title><!-- the title is what appears on your tab -->
<link rel="stylesheet" type="text/css" href="./main.css" />
</head>

<body><!-- the body element is where everything we will see on the page will go -->

<!-- our soon to be beautiful rainbow! -->
<div> <!-- the grandest grandparent div -->
<div>
<div>
<div>
<div>
<div>
<div></div> <!-- the grandest child div -->
<div id="red">
<div id="orange">
<div id="yellow">
<div id="green">
<div id="blue">
<div id="indigo">
<div id="violet">
</div>
</div>
</div>
</div>
</div>
</div>

</div>
</body>

</html>
21 changes: 21 additions & 0 deletions main.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,24 @@ div {
border-right-color: transparent; /* the right side */
border-bottom-color: transparent; /* and the bottom of the circle */
}
#red {
border-top-color: #f00;
}
#orange {
border-top-color: #ffa500;
}
#yellow {
border-top-color: #ff0;
}
#green {
border-top-color: #00bc3f;
}
#blue {
border-top-color: #06f;
}
#indigo {
border-top-color: #8a2be2;
}
#violet {
border-top-color: #d300c9;
}