I'm struggling to make my divs float left for the first one and then float right for the second one, and so on. I've attempted using float and also tried Bootstrap 5 float options, but neither seems to work. I've searched online for solutions but haven't found anything that works.
The initial idea was to have a background image, but for now, I'm simply using colored divs - red and blue.
Any assistance would be greatly appreciated!
/*Main*/
@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');
html, body {
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
overflow-x: hidden;
background-color: #0f2471;
font-family: 'Poppins', sans-serif;
}
... (CSS code continues)
<!DOCTYPE html>
<html>
<head>
<title>Testing</title>
<!-- CSS -->
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e5878a8a919691978495a5d0cbd7cbd5c887809184d4">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
... (HTML code continuation)
<body>
<!-- Specific design elements continue here -->
</body>
</html>