Skip to content
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

Add CSS #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
7 changes: 7 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#image {
max-width: 100%;
height: auto;
display: block;
margin-left: auto;
margin-right: auto;
}
51 changes: 37 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
Expand All @@ -8,19 +7,43 @@

<body>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Tribute Page</title>
<link rel="stylesheet" href="css/style.css" />
</head>

<!--

Hello Camper!

For now, the test suite only works in Chrome!
Please read the README below in the JS Editor before beginning.
Feel free to delete this message once you have read it.
Good luck and Happy Coding!

- The freeCodeCamp Team

-->
<body>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<main id="main">
<h1 id="title">Dr. Norman Borlaug</h1>
<div id="img-div">
<img
src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute-page-main-image.jpg"
alt="Tribute image for Dr. Norman Borlaug"
id="image"
/>
<h5 id="img-caption">
Dr. Norman Borlaug, third from the left, trains biologists in Mexico
on how to increase wheat yields - part of his life-long war on hunger.
</h5>
</div>
<p id="tribute-info">
<ul>
<li>1914 - Born in Cresco, Iowa</li>
<li>1933 - Leaves his family's farm to attend the University of Minnesota, thanks to a Depression era program known as the "National Youth Administration"</li>
<li>1935 - Has to stop school and save up more money. Works in the Civilian Conservation Corps, helping starving Americans. "I saw how food changed them", he said. "All of this left scars on me."</li>
</ul>
</p>
<a
id="tribute-link"
href="https://codepen.io/freeCodeCamp/full/zNqgVx"
target="_blank"
>More information about Dr. Norman Borlaug</a
>
</main>
<script src="js/index.js"></script>
</body>
</html>
</html>