Reputation: 125
I'm trying to place text after another text but both are aligning in same line. Please help me with this.
<a class="text-dark" href="">become a driver</a>
<a class="text-dark" href="">driver</a>
Upvotes: 1
Views: 61
Reputation: 1382
Make your a
tag or .text-dark
class display:block
a {
display:block
}
<a class="text-dark" href="">become a driver</a>
<a class="text-dark" href="">driver</a>
Upvotes: 2
Reputation: 4587
There is a couple of ways you can do this, here are a few:
.text-dark {
display: block;
}
<a class="text-dark" href="">become a driver</a>
<a class="text-dark" href="">driver</a>
<a href="">become a driver</a><br/>
<a href="">driver</a>
Upvotes: 1