1

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>
kukkuz
  • 41,512
  • 6
  • 59
  • 95
LiN
  • 125
  • 1
  • 14
  • that's because `a` in inline... add `display: block` to it... read [more here](https://stackoverflow.com/questions/40630148/inexplicable-offsets-in-some-very-basic-html/40630355#40630355) – kukkuz Mar 17 '19 at 07:10
  • Nope i'm using multiple links like that in a division. what should i do with a division. – LiN Mar 17 '19 at 07:13
  • So add `
    `, this is basic HTML
    – Alon Eitan Mar 17 '19 at 07:15

2 Answers2

2

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>
Abdul Basit
  • 1,352
  • 1
  • 10
  • 18
1

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>
Miroslav Glamuzina
  • 4,472
  • 2
  • 19
  • 33