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

fix: q2 #2

Open
wants to merge 2 commits into
base: main
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
21 changes: 21 additions & 0 deletions question 2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,32 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Document</title>
</head>

<body>
<!-- Write Your Code Here -->
<section class="about">
<h1>About Us</h1>
<p>Some text about history of the company</p>
</section>

<section class="midsection">
<div class="row1">
<div class="square">1 sqaure</div>
<div class="square">2 square</div>
</div>

<div class="row1">
<div class="square">3 square</div>
<div class="square">4 square</div>
</div>
</section>

<section class="contact">

</section>
</body>

</html>
40 changes: 39 additions & 1 deletion question 2/styles.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,40 @@
/* Write Your CSS Here */

/* Write Your CSS Here */
body{
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}

.about, .contact{
background-color: antiquewhite;
margin: 4vw 2vw;
height: 25vw;
width: 250px;
padding: 4vw;
text-align: center;
}

.midsection{
background-color: #eccce5;
width: 480px;
height: 33vw;
display: flex;
flex-direction: column;
justify-content: space-around;
}

.row1{
display: flex;
flex-direction: row;
justify-content: space-between;
}

.square{
text-align: center;
height: 250px;
width: 350px;
border: 1px solid #23060b;
margin: 0vw;
}