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
15 changes: 8 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@

<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"> <!-- the grandest grandparent div -->
<div id="orange">
<div id="yellow">
<div id="green">
<div id="blue">
<div id="indigo">
<div id="violet"></div> <!-- the grandest child div -->
</div>
</div>
</div>
Expand Down
28 changes: 28 additions & 0 deletions main.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,31 @@ 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;
}
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.