Currently, I am implementing a collapsible navbar feature using Bootstrap 4. The issue I'm facing is with the alignment when the screen size shrinks and the navbar toggler becomes active. While the menu items are hidden on the right side, the toggler icon appears on the left, causing an overlap with the logo placed on the same side. My goal is to keep the toggler aligned to the right.
I've experimented with setting absolute position, utilizing 'navbar-toggler-right', and exploring container layouts like 'justify-content-between'. However, none of these solutions have provided the desired outcome so far.
If you would like to review the code I've written regarding this issue, please access it through the following Codepen link: https://codepen.io/amandathedev/pen/bOrZZq
Note that all images in this project are hosted locally, hence they may not appear in the Codepen preview. Despite this, I trust it will still be clear to understand the problem related to the logo positioning.
Thank you for your assistance!
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Modern Calligraphy</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link rel="shortcut icon" type="image/x-icon" href="logo.ico" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" />
<link href="https://fonts.googleapis.com/css?family=Raleway:300,400,700" rel="stylesheet" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="grid-container">
...
</div>
</body>
</html>
CSS:
body {
background-image: url("concrete-texture.png");
}
.grid-container {
display: grid;
font-family: "Raleway", sans-serif;
...
}
...