Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.
Merged
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
21 changes: 10 additions & 11 deletions flex/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,33 @@
<html>

<head>
<title>Flex</title>
<title>Inline</title>
<link href='style.css' rel='stylesheet' />
<link href='https://fonts.googleapis.com/css?family=Roboto+Mono' rel='stylesheet'>
</head>

<body>
<h1>Display: Flex</h1>
<div class='container' id='flex'>
<h1>Inline-flex</h1>
<div class='container'>
<div class='box'>
<h2>1</h2>
<h3>1</h3>
</div>
<div class='box'>
<h2>2</h2>
<h3>2</h3>
</div>
<div class='box'>
<h2>3</h2>
<h3>3</h3>
</div>
</div>
<h1>Display: Block</h1>
<div class='container' id='block'>
<div class='container'>
<div class='box'>
<h2>1</h2>
<h3>1</h3>
</div>
<div class='box'>
<h2>2</h2>
<h3>2</h3>
</div>
<div class='box'>
<h2>3</h2>
<h3>3</h3>
</div>
</div>
</body>
Expand Down
53 changes: 23 additions & 30 deletions flex/style.css
Original file line number Diff line number Diff line change
@@ -1,31 +1,24 @@
body {
margin: 0;
border: 0;
font-family: 'Roboto Mono', monospace;
}

h1 {
font-size: 18px;
text-align: center;
}

h2 {
font-size: 16px;
text-align: center;
}

.container {
background-color: whitesmoke;
}

.box {
background-color: dodgerblue;
height: 100px;
width: 100px;
border: 1px solid lightgrey;
}

#flex {
display: flex;
}

margin: 0;
border: 0;
font-family: 'Roboto Mono', monospace;
text-align: center;
}

h1 {
font-size: 18px;
text-align: center;
}

.container {
width: 150px;
border: 1px solid grey;
display: inline-flex;
}

.box {
background-color: dodgerblue;
height: 75px;
width: 75px;
border: 1px solid turquoise;
}