Reputation: 1489
I have this div.
<div class="abc">
<a href="#">Select All</a>
<a href="#">#</a>
{{#each letters}}
<a href="#">{{this}}</a>
{{/each}}
</div>
Which prints something like this:
But I want to get something like this:
Ignore the star icon.
I want to have space between each letter and also change the color of the href
Already tried with
margin-left: 1.375rem;
But it didn't work.
Upvotes: 0
Views: 99
Reputation: 9739
Just use display: inline-block;
in <a>
and set your margin
or padding
CSS
a{
display: inline-block;
margin-right: 10px; //Adjust your needs
}
Upvotes: 3
Reputation: 6826
Use padding:
<a href="#" style="padding:3px">{{this}}</a>
Of course, it would be a lot cleaner to use a css class.
Upvotes: 0