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
16 changes: 15 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<!-- This is where you will begin your solution -->
<div class = "pageBorder">
<h1>Header</h1>
<div class = "split">
<h2> Placeholder </h2>
<div class ="floatRight">
<p class = "centerText">New!</p>
</div>
<p>"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 = "split">
<h2>Placeholder</h2>
<p>"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.

100 changes: 100 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
.pageBorder {
box-sizing: border-box;
border: solid black 3px;
}
h1 {
text-align: center;
}

.split {
display: inline-block;
width: 50%;
box-sizing: border-box;
margin: 0;
padding: 10px;
border-right: solid black 1.5px;
border-top: solid black 3px;
height: 300px;
padding-right: 0px;
}
.split2 {
display: inline-block;
width: 50%;
box-sizing: border-box;
margin: 0;
padding: 10px;
border-left: solid black 1.5px;
border-top: solid black 3px;
height: 300px;
padding-right: 0px;
}

.floatRight {
float: right;
width: 50px;
height: 30px;
border: solid black 1px;
background-color: grey;
box-sizing: border-box;
text-align: center;
}
h2 {
display: inline-block;
}

.centerText {
margin: 10px 7px 7px;
}
@media (max-width: 600px) {
.pageBorder {
box-sizing: border-box;
border: solid black 3px;
}
h1 {
text-align: center;
}

.split {
display: block;
width: 100%;
box-sizing: border-box;
margin: 0;
padding: 10px;
border-left: solid black 1.5px;
border-right: solid black 1.5px;
border-bottom: solid black 1.5px;
border-top: solid black 3px;
height: 300px;
padding-right: 0px;
}
.split2 {
display: block;
width: 100%;
box-sizing: border-box;
margin: 0;
padding: 10px;
border-left: solid black 1.5px;
border-right: solid black 1.5px;
border-bottom: solid black 1.5px;
border-top: solid black 3px;
height: 300px;
padding-right: 0px;
}

.floatRight {
float: right;
width: 50px;
height: 30px;
border: solid black 1px;
background-color: grey;
box-sizing: border-box;
text-align: center;
}
h2 {
display: block;
}

.centerText {
margin: 10px 7px 7px;
}
}