WordPress CSS - 可能是一个非常修复
-
21-12-2019 - |
题
我在我的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;
}
. 不隶属于 StackOverflow