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
25 changes: 23 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Expand All @@ -13,12 +13,33 @@
<body>
<header>
<h1>Two Truths, One Lie</h1>
<p>Can you guess which statement is false?</p>
</header>
<main>
<!-- how will you mark up your media objects -->
<section class="Oneil">
<h2 class="name">Oneil</h2>
<img class="picture" src="pexels-saifuddin-ratlamwala-3850526.jpg" alt="Elephant">
<ol class="list">
<li>I had an Elephant when I was younger.</li>
<li>I was born in Lahore, Pakistan.</li>
<li>I've had a pet tortoise.</li>
</ol>
</section>

<section class="Alex">
<h2 class="name">Alexandra </h2>
<img class="picture" src="pexels-saifuddin-ratlamwala-3850526.jpg" alt="Elephant">
<ol class="list">
<li>Lorem ipsum dolor sit amet.
</li>
<li>Lorem ipsum dolor sit amet.</li>
<li>Lorem ipsum dolor sit amet.</li>
</ol>
</section>
</main>
<footer>
<h3>By YOUR NAMES HERE</h3>
<h3>By Oneil and Alexandra</h3>
</footer>
</body>
</html>
Binary file added pexels-saifuddin-ratlamwala-3850526.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,65 @@

body {
font: 100% "Poppins", sans-serif;
background-color: rgb(106, 104, 104);
text-align: center;
color: white;
}

.Oneil, .Alex {
display: grid;
background: linear-gradient(105deg,rgb(50, 48, 48),rgba(255, 255, 255, 0.842));
color: white;
border-radius: 5px;
margin: 10px;
padding: 20px;
width: 275px;
grid-template-areas:
"picture name"
"list list";
grid-gap: 5px;
text-align: left;
}

.picture {
grid-area: picture;
border: 1px solid rgb(253, 251, 251);
width: 100px;

}

.name {
grid-area: name;
margin-right: 20px;
font-size: 26px;
/* Test
font-size: 200%;*/
font-weight: lighter;
}

.list {
grid-area: list;
justify-self: start;
margin: 5px;
padding: 10px;
font-style: italic;
}

@media (min-width: 300px) {

main {
display: flex;
justify-content: space-evenly;
flex-flow: row wrap;
}

footer {
margin: 100px 0;
}
}

@media (max-width: 450px) {
.name {
font-size: 24px;
}
}