在我的网站http://www.tokensofchange.org上,将导航栏定位在正确位置的唯一方法是在CSS中使用页边距样式。
.nav {
margin-top:10.3%;
width: 70%;
background-color: #050936;
height:92px;
float: right;
border-top: 5px solid rgba(0,108,255,0.35);
}
如果删除margin-top: 10.3%
,则导航栏将在站点上显示的绿色按钮下向上推。我不确定背景图片的格式是否有误,以致无法将导航栏向下推:
.backgrounddiv {
background: url('/images/Background_Index3.jpg');
padding-bottom: 2%;
background-size: 100% auto;
}
显示的两个按钮不包含任何边距样式,因此我不确定为什么导航栏不位于带有背景图像,徽标和按钮的标题下方。任何想法将不胜感激。谢谢!
您-9em
在.wrapper
div上的负边距。删除它,然后可以margin-top:10.3%;
从导航中删除。
希望对您有所帮助
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句