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
Binary file added .DS_Store
Binary file not shown.
11 changes: 11 additions & 0 deletions p1/css/p1.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
span {
display: block;
width: 100px;
height: 100px;
margin: 5px;
background-color: black;
color: white;
font-weight: 500
font: 100

}
1 change: 1 addition & 0 deletions p1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html lang="en-us">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/p1.css">
</head>
<body>
<h1>Display inline -> block with CSS</h1>
Expand Down
Binary file added p2/.DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion p2/styles/main.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
span {
display: block;
display: inline-block;
width: 100px;
height: 100px;
margin: 5px;
background-color: black;
color: white;
font-weight: 500
}
20 changes: 20 additions & 0 deletions p3/css/p3.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.full {
background-color: pink;
height: 100px;
width: 100%;
}

.half1 {
display: inline-block;
background-color: yellow;
height: 300px;
width: 49.5%

}
.half2 {
display: inline-block;
background-color: yellow;
height: 300px;
width: 49.5%;
margin-left: 1%;
}
17 changes: 3 additions & 14 deletions p3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,10 @@
<html lang="en-us">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="styles/main.css">
<link rel="stylesheet" href="css/p3.css">
</head>
<body>
<h2>Solution should look like</h2>

<p>
Use whatever classes and methods that you'd like to achieve this.
</p>
<img src="http://fewd.us/FEWDpress/wp-content/uploads/2014/08/Screen-Shot-2014-08-23-at-2.59.19-AM.png" target="_blank">

<section class="wrapper devmode">
<!-- write your code here -->
<div class="col"></div>
<div class="col col-one-half"></div><div class="col col-one-half col-last"></div>
<div class="col col-one-third"></div><div class="col col-one-third"></div><div class="col col-one-third"></div>
</section>
<div class="full"></div>
<div class="half1"></div><div class="half2"></div>
</body>
</html>
31 changes: 31 additions & 0 deletions p3/styles/p3.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
span {
display: block;
width: 100px;
height: 100px;
margin: 5px;
background-color: black;
color: white;
font-weight: 500
font: 100

}span {
display: block;
width: 100px;
height: 100px;
margin: 5px;
background-color: black;
color: white;
font-weight: 500
font: 100

}span {
display: block;
width: 100px;
height: 100px;
margin: 5px;
background-color: black;
color: white;
font-weight: 500
font: 100

}