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
242 changes: 242 additions & 0 deletions css/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
display: block;
}
body {
line-height: 1;
}
ol,
ul {
list-style: none;
}
blockquote,
q {
quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: "";
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}

/* Code Starts here */
* {
margin: 30px 0;
box-sizing: border-box;
}

body {
background-color: lightsteelblue;
}

header nav {
display: flex;
justify-content: space-around;
margin: 30px 0;
}

header nav a {
color: linen;
text-decoration: none;
}

section.inline-block {
text-align: center;
padding: 30px;
}

section.inline-block .block {
padding: 30px;
width: 30%;
margin: 10px;
border: 2px solid #ddd;
display: inline-block;
}

section.inline-block .ibox1 {
background-color: maroon;
}

section.inline-block .ibox2 {
background-color: mediumpurple;
}

section.inline-block .ibox3 {
background-color: mediumseagreen;
}

section.flex-box {
text-align: center;
padding: 30px;
}

section.flex-box .flex-child {
display: flex;
flex-wrap: wrap;
width: 700px;
margin: auto;
}

section.flex-box .block {
margin: 30px;
width: 100px;
height: 100px;
border: 2px solid #ddd;
}

section.flex-box .one {
background-color: teal;
}

section.flex-box .two {
background-color: aquamarine;
}

section.flex-box .three {
background-color: bisque;
}

section.flex-box .four {
background-color: burlywood;
}

section.flex-box .five {
background-color: cornflowerblue;
}

section.flex-box .six {
background-color: darkkhaki;
}

section.flex-box .seven {
background-color: pink;
}

section.flex-box .eight {
background-color: firebrick;
}

section.flex-box .nine {
background-color: darkorchid;
}

section.flex-box .ten {
background-color: gainsboro;
}

section.flex-box .eleven {
background-color: lavenderblush;
}

section.flex-box .twelve {
background-color: lightsalmon;
}
41 changes: 41 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE html>
<head>
<title>Romans Overview</title>
<link rel="stylesheet" type="text/css" href="css/index.css" />
</head>
<html>
<body>
<header>
<nav>
<a href="#">Inline-block</a>
<a href="#">Flex-box</a>
<a href="#">Footer</a>
</nav>
</header>

<section class="inline-block">
<h1>Inline Block</h1>
<div class="block ibox1">Block 1</div>
<div class="block ibox2">block 2</div>
<div class="block ibox3">block 3</div>
</section>

<section class="flex-box">
<h1>Flex-box</h1>
<div class="flex-child">
<div class="block one">Block 1</div>
<div class="block two">block 2</div>
<div class="block three">block 3</div>
<div class="block four">Block 1</div>
<div class="block five">block 2</div>
<div class="block six">block 3</div>
<div class="block seven">Block 1</div>
<div class="block eight">block 2</div>
<div class="block nine">block 3</div>
<div class="block ten">Block 1</div>
<div class="block eleven">block 2</div>
<div class="block twelve">block 3</div>
</div>
</section>
</body>
</html>
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
## To Do
*[] add color to all boxes

*[] Add a Margin to the header of 30 px 0

*[] Change the background of the body