Implementing Bootstrap for styling my HTML page has resulted in the following layout:
https://i.sstatic.net/wzsnc.png
Currently, both words are positioned at the top of the screen. However, I aim to have them vertically centered. Additionally, they are centered horizontally, but I want one word on the left and the other on the right side of the screen.
The desired layout is shown below:
https://i.sstatic.net/Q3lhT.png
This is the code I'm using:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2e4c41415a5d5a5c4f5e6e1a001e001e">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<div class="container">
<div class="row align-items-center">
<div class="col align-self-start">
Hello
</div>
<div class="col align-self-end">
World
</div>
</div>
</div>
</body>
<script src="script.js" defer></script>
</html>
I've experimented with various methods, but there seems to be minimal change regardless of how I modify the code.