Skip to content

Heading #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
32 changes: 30 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,28 @@
table { border-spacing: 1px 4px; }
body { font-family: Arial, sans-serif; }

body{ background-image: linear-gradient(90deg, orange 60%, cyan); } /* Added a background colour */
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you forgot to separate this line– mind removing this line?


.intro{ /*for making the top heading in center*/
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, I'm not sure it would look better with everything centered– human reading starts from the left, after all. I suppose it might look nicer if we moved the key and heading towards the center, but kept them left-aligned. I'm not sure this looks good when the key isn't also centered.

text-align: center;
justify-content: left;
align-items: center;
}


footer>p{ /*for making the last part interactive*/
margin: 5px 0 0 35px;
font-size: 25px;

}


footer>h3{
margin: 10px 0 0 20px;
font-size: 40px;
color: red;
}

/*th { font-size: x-large; }*/
dt { font-size: xxx-large; font-weight: bold; }
dd { margin-inline-start: 0px; }
Expand Down Expand Up @@ -52,9 +74,12 @@

.key div::before { content: ""; display: inline-block; height: 1em; width: 1em; background-color: var(--color); }
</style>
<body>
<div style="position: absolute; top: 1vw; right: 1vw;">By James Lu</div>
<h2>Periodic Table of Web APIs v0.0.1</h2>
<h3>Map of Web APIs/Technologies</h3>

<div class="intro"><h2 style="font-size:50px; color: crimson">Web Periodic Table v0.0.1</h2>
<h3 style="font-size:35px">Map of Web APIs/Technologies</h3></div>

<div class="key">
<h3>Key</h3>
<div class="all"> Supported by all browsers including IE11</div>
Expand Down Expand Up @@ -504,6 +529,7 @@ <h3>Key</h3>
</table>
</main>
<div style="position: relative; bottom: 90ch">
<footer>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice use of semantic HTML.

<h3>How is it organized?</h3>
<p>Just like a real periodic table, the positioning has a meaning.</p>

Expand All @@ -518,5 +544,7 @@ <h3>How is it organized?</h3>
<h3>What do the colors represent?</h3>
<p>The lighter the color, the more support there is.</p>
<p>The red represents how active the specification or proposal is.</p>
</footer>
</div>
</body>
</html>