<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
h2+div{
display: flex;
}
h2+div > div{
width: 90px;
height: 90px;
border: 1px solid #8c8c8c;
margin: 10px;
}
#parent{
justify-content: flex-start;
}
#parent1{
justify-content: flex-end;
}
#parent2{
justify-content: center;
}
#parent3{
justify-content: space-between;
}
#parent4{
justify-content: space-around;
}
#parent5{
justify-content: space-evenly;
}
</style>
</head>
<body>
<h1>CSS justify-content Property</h1>
<h2>justify-content: flex-start; (default)</h2>
<div id="parent">
<div>Div 1</div>
<div>Div 2</div>
</div>
<h2>justify-content: flex-end;</h2>
<div id="parent1">
<div>Div 1</div>
<div>Div 2</div>
</div>
<h2>justify-content: center;</h2>
<div id="parent2">
<div>Div 1</div>
<div>Div 2</div>
</div>
<h2>justify-content: space-between;</h2>
<div id="parent3">
<div>Div 1</div>
<div>Div 2</div>
</div>
<h2>justify-content: space-around;</h2>
<div id="parent4">
<div>Div 1</div>
<div>Div 2</div>
</div>
<h2>justify-content: space-evenly;</h2>
<div id="parent5">
<div>Div 1</div>
<div>Div 2</div>
</div>
</body>
</html>