I am currently facing a challenge with creating an OR divider using Bootstrap 5, as it seems to not display correctly when compared to Bootstrap 4. The text's background color also appears to have some transparency in my project.
Here is the code I am using:
<div class="or-line-block pt-2">
<h6 class="text-center m-0"><span class="or-txt px-2">OR</span></h6>
<hr class="or-line">
</div>
And here are the related CSS styles:
.or-txt{
background-color: white;
}
.or-line{
margin-top: -10px;
border-color: rgba(#333, 0.1);
}
In Bootstrap 4, the divider appears like this:
https://i.sstatic.net/mza1n.png
But in Bootstrap 5, it looks like this:
https://i.sstatic.net/HlnyI.png
https://i.sstatic.net/D0Pr8.png
If you can identify the issue and provide assistance, it would be greatly appreciated.