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
Empty file added index-flex.html
Empty file.
7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,12 @@
</head>
<body>
<!-- This is where you will begin your solution -->
<header><h1>Header</h1></header>

<div class="container">
<!--Setting the "class" to box makes this class usable multiple times
VS setting the "id" which is specifies that one div..-->
<div class="box"><h2>Placeholder</h2><p id="flag">New!</p><span>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Adipisci dolores fugiat, culpa nemo eveniet odit doloremque soluta cum reprehenderit corrupti natus possimus eum delectus itaque architecto blanditiis nulla ullam distinctio?</span></div><div class="box"><h2>Placeholder</h2><span>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Adipisci dolores fugiat, culpa nemo eveniet odit doloremque soluta cum reprehenderit corrupti natus possimus eum delectus itaque architecto blanditiis nulla ullam distinctio?</span></div>
</div>
</body>
</html>
Empty file added styles-flex.css
Empty file.
30 changes: 30 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
body {
margin: 0;
}
header {
text-align: center;
width: 100%;
border: solid 3px;
box-sizing:border-box;
}
#flag {

top:102px;
right: 50.3%;
position: fixed;
background: grey;
padding:5;
}
.container {
display: inline-block;
width: 100%;
box-sizing: border-box;
}
.box {
display: inline-block;
padding:10;
width: 50%;
height: 200px;
border: solid 3px;
box-sizing: border-box;
}