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
28 changes: 26 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<title>Introduction to the DOM</title>
<title>Hello</title>
<!-- Here we reference our styles.css for our page styling -->
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<!-- This is where you will begin your solution -->
<h1 class="header">Header</h1>
<div class="container">
<div class="container__left-text">
<div class="container__headerContainer">

<strong><h2>Placeholder</h2></strong>
<div class="flag flag--color">
<p>New!</p>
</div>
</div>

<p><br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<div class="container__right-text">

<div class="headerContainer">

<strong><h2>Placeholder</h2></strong>
</div>

<p><br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
</div>
</body>
</html>
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 63 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
* {
margin: 0;
padding: 0;
}

.header {
display: flex;
justify-content: center;
border: solid 4px black;
padding: 20px;
}

.container {
display: flex;
}

.flag {
display: flex;
flex-direction: column-reverse;
padding: 5px;
box-sizing: border-box;
text-align: center;
width: 50px;
height: 30px;
}

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

.container__left-text {
display: flex;
flex-direction: column;
border-left: solid 4px black;
border-bottom: solid 4px black;
padding: 5px;
padding-right: 0;
}

.container__right-text {
display: flex;
flex-direction: column;
border-left: solid 4px black;
border-right: solid 4px black;
border-bottom: solid 4px black;
padding: 5px;
}

.flag--color {
background-color: grey;

}

@media screen and (max-width: 480px) {
.container {
flex-direction: column;
}
.container__left-text {
border-right: solid 4px black;
}
}