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
26 changes: 25 additions & 1 deletion 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>Aaron King...DOM</title>
<!-- Here we reference our styles.css for our page styling -->
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<div class="header">
<div class ="header__title">
<span>Header</span>
</div>
</div>
<div class="content-container">
<div class="post">
<div class="post__title">
<div>Placeholder</div>
</div>
<div class="new">New!</div>
<div class="post__copy">
<span>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Iure architecto, et hic saepe, maiores fugiat asperiores eum est consectetur assumenda voluptates, provident facere cumque molestiae maxime neque dolorum quod repellendus.</span>
</div>
</div>
<div class="post">
<div class="post__title">
<span>Placeholder</span>
</div>
<div class="post__copy">
<span>Lorem ipsum dolor sit amet consectetur adipisicing elit. Animi, natus numquam magnam eveniet distinctio facere possimus tenetur ducimus nobis mollitia, nisi impedit voluptates eius nam accusantium vel est alias? Sint.</span>
</div>
</div>
</div>
<!-- This is where you will begin your solution -->
</body>
</html>
68 changes: 68 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
body
{
margin: 0;
padding: 0;
}

.header
{
border: solid black 3px;
}

.header__title
{
font-size: 36px;
text-align: center;
padding: 15px;
}

.content-container
{
display: flex;
flex-direction: column;
}

.post
{
display: flex;
border: solid black 2px;
flex-direction: column;
}

.post__title
{
display: flex;
font-size: 23px;
padding-left: 10px;

}

.post__copy
{
display: flex;
padding: 15px;
}

.new
{
display: flex;
background-color: gray;
padding: 10px;
align-self: flex-end;
position: absolute;
top: 85px;
}

.new--red-label
{
color: red;
}

@media (min-width: 900px)
{
.content-container
{
display: flex;
flex-direction: row;
}
}