开发者

Positioning Two Nav Elements in Subheader

开发者 https://www.devze.com 2023-01-21 08:24 出处:网络
I need some help positioning two nav elements (2 and 3) in a subheader (1).Please, refer to the mockup.

I need some help positioning two nav elements (2 and 3) in a subheader (1). Please, refer to the mockup.

Positioning Two Nav Elements in Subheader

I am really only concerned with positioning here. I want to position the daysNav (2) on the left, and opposite it, the paginationNav (3) on the right. It would also be cool if I didn't have to define a fixed height for the subheader both elemen开发者_Python百科ts are in; instead, it'd expand and collapse automatically based on the largest height size of either element.

Thanks!


 #subhead {overflow:hidden;}
.days-nav {float:left;}
.pagination-nav {float:right;}

<div id="subhead">

    <div class="days-nav">
        ....
    </div>

    <div class="pagination-nav">
        ....
    </div>

</div>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号