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
38 changes: 35 additions & 3 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 @@ -12,13 +12,45 @@
</head>
<body>
<header>
<h1>Two Truths, One Lie</h1>
<h1>Two Truths,One Lie</h1>
<h2>Can you guess which statement is false?</h2>
</header>
<main>
<!-- how will you mark up your media objects -->
<section id="box">

<div class="box box1">
<img class="image" src="https://images.pexels.com/photos/1815388/pexels-photo-1815388.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940" alt="airport">
<h2>Mohammed</h2>

<ul>
<li>1 - I paly in a band</li>
<li>2 - I can speak 2 languages</li>
<li>3 - I am studying Coding</li>
</ul>


</div>
<div class="box">
<img class="image" src="https://images.pexels.com/photos/1089438/pexels-photo-1089438.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940" alt="matrix">
<h2>Maziar Majd</h2>

<ul>
<li>1 - I am a poet</li>
<li>2 - I can play guitar</li>
<li>3 - I am a great cook</li>
</ul>

</div>





</section>
</main>
<footer>
<h3>By YOUR NAMES HERE</h3>
<h3>By Maziar Majd</h3>
</footer>
</body>
</html>
85 changes: 85 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,89 @@

body {
font: 100% "Poppins", sans-serif;
background-color: grey;
}
header{
text-align: center;
font-weight: 400;
font-size: larger;
}

h4{
font-weight: 200;
}

#box{
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 1fr 1fr;

}
.box{
display: grid;
grid-template-columns: 1fr 1fr;
}


.box{
border: 2px solid blue;
grid-template-columns: 1fr 2fr;
align-items: center;
background-color: ivory;
max-width: 300px;




}
.box1{
margin-bottom: 20px;
}
.image{
border: 1px solid grey;
margin: 20px;
width: 50px;
height: 50px;
}
.name{
font-size: small;
float: right;
margin-right: 50px;
margin-top: 90px;


}
ul{
grid-column: 1/3;
}

li{
list-style-type: none;
}

footer{
margin-top: 50px;
text-align: center;
}

@media screen and (min-width: 600px) {
body{
background-color: green;
}
#box{
grid-template-columns: 1fr 1fr;
justify-items: center;

}
.image{
width: 100px;
height: 100px;

}

.box1{
margin-bottom: 0;
margin-right: 10px;
}

}