雙行導航欄 - 是什麼原因造成的? (double row navigation bar- what's causing it?)


問題描述

雙行導航欄 - 是什麼原因造成的? (double row navigation bar- what's causing it?)

Live site.

I think I've been working a little too long on too little sleep to get this site completed. The navigation bar, for some reason I can't seem to find, has resorted to being two levels, regardless of the amount of space I give the links and searchform. Any ideas on what's causing the second row? Ideally, it should all be one row, with even spacing between the far left link and the right side search form.

Thank you.


參考解法

方法 1:

it because of the padding: 

#branding .only-search + #access div {
   padding-right: 205px;
}

and the margin: 

#access div {
    margin: 0 7.6%;
}

Reduce both of the padding and margin

方法 2:

padding-right:205px; in your style.css on line 728 is causing this.

Reduce padding accordingly.

(by AMCAlireza41Ahsan Khurshid)

參考文件

  1. double row navigation bar- what's causing it? (CC BY-SA 3.0/4.0)

#padding #css #navigation #margin #search






相關問題

'android:paddingRight' 與 'android:drawableRight' 一起使用 (’android:paddingRight’ working with ‘android:drawableRight’)

雙行導航欄 - 是什麼原因造成的? (double row navigation bar- what's causing it?)

在 Twitter 引導程序中為行添加背景顏色和填充 (Adding background color and padding to row in Twitter bootstrap)

如何控制 addView 到佈局 (How to control addView to a layout)

Ці можа выкарыстанне працэнтаў для вышыні запаўнення/поля/межы быць лепшым, чым em? (Can using percentages for height of padding/margin/border be better than em?)

填充對絕對定位的下拉菜單有意想不到的影響 (Padding has unexpected effect on drop down menu with absolute postioning)

內部 div 相對於包裝器具有不需要的空間 (Inner div has unwanted space in relation to wrapper)

css @font-face 不會在所有瀏覽器中垂直對齊文本 (css @font-face doesn't align text vertically across all browsers)

填充佔用了額外空間,我希望我的 div 像引導 div 一樣 (padding is taking up extraspaces,i want my div's to act like bootstrap div's)

Android -- 使用帶有自定義背景的 ListView 時如何刪除那一點額外的填充? (Android -- How to remove that little extra padding when using a ListView with custom background?)

使用顯示時沒有底部填充:網格和滾動 (No bottom padding when using display: grid and scroll)

TCL 中的零填充 (zero padding in TCL)







留言討論