Html 调整导航栏文本-CSS

Html 调整导航栏文本-CSS,html,css,Html,Css,我现在有这个问题,我有点困惑。我希望能得到一些帮助 我当前的导航栏如下所示: 我希望它是这样的: 以下是相关的CSS代码: nav ul { list-style: none; margin: 0 auto; padding: 20px 0 0 0; border-top: 1px solid #333; width: 100% auto; } nav li { list-style-type: none; display: inlin

我现在有这个问题,我有点困惑。我希望能得到一些帮助

我当前的导航栏如下所示:

我希望它是这样的:

以下是相关的CSS代码:

nav ul {
    list-style: none;
    margin: 0 auto;
    padding: 20px 0 0 0;
    border-top: 1px solid #333;
    width: 100% auto;
}
nav li {
    list-style-type: none;
    display: inline;
    ;
}
.first {
    display:inline;
    margin: 0 auto;
    padding: 0 auto;
}
@font-face {
    font-family:"Steelfish Rg";
    src: url(../fonts/steelfish_rg.ttf) format('truetype');
}
nav a {
    text-transform: uppercase;
    padding: 0 10px;
    font-family: Steelfish Rg, Helvetica, "Helvetica Neue", Arial, sans-serif;
    font-size: 50px;
    line-height: 51px;
    height: 78px auto;
    color: white;
    text-decoration: none;
    color: #ffffff;
    border-right: 1px solid #333;
    border-height: 20px;
    position: relative;
    width: 100% auto;
}
@font-face {
    font-family:"Clarendon Lt BT";
    src: url(../fonts/20924071.ttf) format('truetype');
}
nav small {
    font-family: Clarendon Lt BT;
    font-size: 13px;
    line-height: 17px;
    color: #ababaa;
    text align: left;
    font-weight: 700;
}
nav .bottom {
    margin-top:0;
    margin-bottom: -11px;
    text-align: right;
    padding: 0px 5px 0px 10px;
    position: absolute;
    bottom: 0;
    right: 19px;
}
以及用于导航的html的一部分:

<nav class="navigation">
    <ul>
        <li> 
            <a href="/eng/" class="first current">
                <small> get </small>
                <span> home </span>
                <small class="bottom">dude</small>
            </a>
        </li>
    </ul>
</nav>


谢谢你的帮助,谢谢

当前所有元素都是内联元素。你必须让他们把每一个单词分成一行

  .first small {
     display: block;
  }

父容器看起来不是很清晰,但使用浮动和清除可以让您接近。例如:

nav .first .bottom {
    text-align: right;
    float: right;
    clear: both;
}

我几乎认为,如果您只使用3个标题标签并对其进行样式化,这将更容易实现。