-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: main
Are you sure you want to change the base?
Heading #12
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 */ | ||
|
||
.intro{ /*for making the top heading in center*/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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; } | ||
|
@@ -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> | ||
|
@@ -504,6 +529,7 @@ <h3>Key</h3> | |
</table> | ||
</main> | ||
<div style="position: relative; bottom: 90ch"> | ||
<footer> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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> | ||
|
||
|
@@ -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> |
There was a problem hiding this comment.
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?