79196375

Date: 2024-11-17 01:58:30
Score: 1.5
Natty:
Report link

Shout out to @TemaniAfif, we've now got it figured out.
Edit: @TayneLeite solution worked as well!

So just removing that solves the problem. Also, it is better to use padding rather than width when defining the thickness of the <div class="vertical-line"></div>.

Here's my revised code:

<div class="post-title-container d-flex align-items-center">
    <div class="vertical-line"></div>
    <h1 class="post-title">
        Lorem ipsum dolor sit amet consectetur adipisicing
    </h1>
</div>
.vertical-line {
    padding: 3px;
    background-color: #007bff; 
    margin-right: 1rem;
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @TemaniAfif
  • User mentioned (0): @TayneLeite
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: hanzoera