2014-01-09 28 views
0

我在my Wordpress site標題(標識)有問題。WordPress的CSS - 可能是一個很好的修復

基本上我希望徽標位於導航菜單上方,然後導航菜單居中。

我試過各種不同的方法,包括邊距等。這是我現在的代碼。

/*--HEADER MENU--*/ 
.userMenu { 
    font-weight: bold; 
    height: 40px; 
    position: absolute; 
    right: 30%; 
    margin: -20px 0 0 0; 
    display: inline-block; 
    font-size: 12px; 
    list-style: none; 
} 
+3

請給一個有意義的標題的問題... – brasofilo

+2

請包含足夠的HTML和CSS在你的問題中能夠複製這個問題。鏈接到您的網站是不夠的,使這個問題對未來的訪問者有價值,雖然鏈接到問題的行動是一個有用的伴侶 – musefan

+0

最好的做法是在文章的最後重複問題。 –

回答

1

我玩了一下。接下來的行動應該解決你的問題。

  • 刪除max-height#header
  • #topBar
0

添加text-align: center;試試這個:

#topBar #logo { 
color: #5B5B5B; 
display: block; 
font-size: 32px; 
line-height: 1em; 
} 

.userMenu { 
font-size: 12px; 
font-weight: bold; 
list-style: none outside none; 
text-align: center; 
} 
相關問題