.block { display: inline-block; }
.row {
width: 100%;
text-align: right;
}
hr {
border-top: 1px dotted red;
}
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<div class="row">
<div class="block">Lorem</div>
<div class="block">Ipsum</div>
<div class="block">Dolor</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
For this example, if I remove the Boostrap reference, the 3 items will be displayed horizontally on one line at right top corner:
Lorem Ipsum Dolor
But the boostrap changed it to vertical display after I adding Boostrap library. How to get the 3 items back to be displayed horizontally, still at the right top corner?
The
tag was changed to the following by boostrap:
hr {
margin: 1
rem
0;
color: inherit;
background-color: currentColor;
border: 0;
opacity: .25;
}
How to use my own 'hr' defined in css file? I added my own 'hr' definition.