Currently, I am utilizing a PHP for loop to display 10 tags on an HTML page.
My challenge lies in wanting the <a>
tags to be displayed on separate lines with some spacing. It's common practice to handle this through custom CSS, however, is there a way to accomplish this using bootstrap alone?
I have included the HTML code snippet below as a reference:
<?php
for ($i = 0; $i < 10; $i++) { ?>
<span><?php echo $i + 1; ?>. </span><a class href="#">Lorem ipsum dolor sit</a><br />
<?php } ?>
Your assistance is greatly appreciated!
Desired result:
Lorem ipsum dolor sit amet consectetur adipisicing elit. Et debitis magnam sint laboriosam mollitia qui
Lorem ipsum dolor sit amet consectetur adipisicing elit. Et debitis magnam sint laboriosam mollitia qui
Lorem ipsum dolor sit amet consectetur adipisicing elit. Et debitis magnam sint laboriosam mollitia qui
Lorem ipsum dolor sit amet consectetur adipisicing elit. Et debitis magnam sint laboriosam mollitia qui
Lorem ipsum dolor sit amet consectetur adipisicing elit. Et debitis magnam sint laboriosam mollitia qui
Lorem ipsum dolor sit amet consectetur adipisicing elit. Et debitis magnam sint laboriosam mollitia qui
Lorem ipsum dolor sit amet consectetur adipisicing elit. Et debitis magnam sint laboriosam mollitia qui
Lorem ipsum dolor sit amet consectetur adipisicing elit. Et debitis magnam sint laboriosam mollitia qui
Lorem ipsum dolor sit amet consectetur adipisicing elit. Et debitis magnam sint laboriosam mollitia qui
Lorem ipsum dolor sit amet consectetur adipisicing elit. Et debitis magnam sint laboriosam mollitia qui