Can you help me with aligning two elements to the center and right edge using flex? I am trying to achieve a layout similar to the image.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
https://i.sstatic.net/cvmHX.png
CSS Styles
.flex{
display: flex;
justify-content: space-between;
align-items: center;
background:lightblue;
}
HTML Markup
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="main.css" />
<title>sample</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="row mx-auto text-center">
<div class="col-12">
<div class="flex">
<p class="">A</p>
<p class="">B</p>
</div>
</div>
</div>
</div>
</body>
</html>