我工作的網站是http://cargocollective.com/amytdattaCSS定位與貨運集體
我試圖定位在貨運環節的運行在頂部導航欄的右側。 在我使用的主題中曾經有一個搜索框正好在那裏,所以我隱藏了搜索並嘗試將搜索CSS複製到貨運鏈接CSS。這裏是:
.cargo_link {
float: right;
margin: 0 0 0 20px;
color: #cccccc;
padding: 0 0 0 25px;
width: 160px;
font-family: Helvetica, Arial, sans-serif;
font-size: 12px;
line-height: 50px;
text-align: right;
border-left: 1px solid #cccccc;
}
一些擺弄z-index值使貨物鏈接再次可見。
雖然我仍然無法將它放在我想要的位置。下面是搜索框(我已經爲可見現在)的CSS:
#search_form {
display: inline-block;
float: right;
margin: 0 0 0 20px;
padding: 0;
}
#search_form #search_term {
background: #f5f5f5;
border-left: 1px solid #cccccc;
border-top: 0;
border-bottom: 0;
border-right: 0;
color: #999999;
font-family: Helvetica, Arial, sans-serif;
font-size: 12px;
height: 50px;
line-height: 12px;
padding: 0 0 0 25px;
width: 160px;
}
我基本上希望貨鏈接正是更換搜索框。 任何意見將不勝感激!
乾杯。
請不要讓人們對您的頁面進行逆向工程。請發佈相關的HTML。 –
對不起!不幸的是,我使用Cargo Collective,它只是讓我訪問樣式表。 – Jiver