我在我的wordpress site

基本上我希望徽标在导航菜单之上,然后是居中的导航菜单。

我已经尝试了各种不同的方法,包括利润率等。这是我目前所拥有的代码。

/*--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;
}
.

有帮助吗?

解决方案

我播放了一点点。下一个操作应该解决您的问题。

  • 删除max-height上的生成#header
  • text-align: center;上添加#topBar

其他提示

试试:

#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;
}
.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top