html - href 之间的空间

标签 html css

我有这个 div。

 <div class="abc">
    <a href="#">Select All</a>
     <a href="#">#</a>
    {{#each letters}}
        <a href="#">{{this}}</a>
    {{/each}}
 </div>

打印出来的是这样的:
enter image description here

但我想得到这样的东西:
enter image description here

忽略星形图标。

我想在每个字母之间留出空格并改变 href 的颜色

已经尝试过

margin-left: 1.375rem;

但是没有用。

最佳答案

只需使用 display: inline-block;<a>并设置你的 marginpadding

CSS

a{
    display: inline-block;
    margin-right: 10px; //Adjust your needs
}

DEMO HERE

关于html - href 之间的空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30441999/

相关文章:

html - block 文本旁边的图像

javascript - 播放和停止从对象创建的视频标签

javascript - Jquery: fadeIn() a div in rows of divs: Visible divs should be pushed to the right.

javascript - 使用 AngularJs 根据条件向 ng-option 添加样式

html - 如何将元素居中放置在浏览器窗口的中间?

asp.net - 停止表格扩展到屏幕外

php - 如何通过 Adob​​e Muse 生成的 CSS 运行 PHP

html - 如何在不使用 fixed 的情况下使页脚紧贴页面底部?

css - 使图像替代文本在所有浏览器上看起来几乎相同

html - 如何使用 CSS 模拟 <br/>(br 标签)?