html - 增加菜单上方的填充

标签 html css wordpress menu

下午好

我想做两件事:1) 增加菜单上方的填充。 2)将我的菜单放在页面中央。

很遗憾,我是初学者,不知道执行这些功能所需的代码。任何帮助将不胜感激。

截图: https://flic.kr/p/omS63R

网页:http://visualicreative.com/employee-of-the-month-videos/

以下是我目前在此模板上使用的其他代码片段:

#thumbnails .controls  { display:  none !important; }

.page-template-template-fullsize-php #main {
max-width: none !important;
}

#primary { box-shadow: none; border: 0 none; }

.page-template-template-fullsize-php #main { margin-top: 0; }

.page-template-template-fullsize-php #header { margin-bottom: 0; }

#welcomeTeaser  { text-transform: none !important; }

.page-template-template-fullsize-php #content .entry-header {
display:none;
}

.page-template-template-fullsize-php #content {
padding: 0px 30px 30px 30px;
} 

#main {padding-top:50px !important;
}

非常感谢!

最佳答案

看起来你的 #mega-main-menu > .menu_holder 需要更多填充,试试这个 CSS:

#mega_main_menu > .menu_holder {
  padding-top: 20px;
}

就菜单居中而言,您需要更改 .not-fixed #site-title, .not-fixed #navigation:

.not-fixed #site-title, .not-fixed #navigation {
 margin: 0 auto;
 max-width: 900px;
}

将最大宽度设置为您喜欢的任何值。

关于html - 增加菜单上方的填充,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24813089/

相关文章:

html - 在 IOS 14 及更高版本上透明显示黑色

html - 有限的博客文章出现在主页和标签搜索中

javascript - 整个页面图库加载/调整大小技术

wordpress - 注册多种帖子类型的分类法

wordpress - 使用recaptcha扩展时联系表格7 wordpress不发送邮件

javascript - jQuery.post() 数据不是 "posting"

HTML 表单字段名称和输入字段未正确对齐

html - 固定 Div 在整个屏幕上的拉伸(stretch),需要每个占据水平空间的百分比

javascript - 在包含的情况下, View 必须是可调用的或列表/元组

CSS内容属性,什么意思