我的网站(wesurf.co.il)上有一个标头,但徽标却以某种方式放置在标头菜单下方,而我希望它位于左侧。我试图搜索徽标行的CSS代码,但找不到。 感谢您的帮助
还-好像我更改了原始徽标的位置时,它也会更改粘性标头徽标,我该如何解决?
这是我在style.css中的标题
/* = Header
----------------------------------------------- */
#header .logo {
overflow: hidden;
text-align: center;
margin-right: auto;
margin-left: auto;
}
#header .nav-main {
border-top: 1px solid;
border-bottom: 1px solid;
}
#header .nav-main.boxed {
max-width: 1140px;
margin: auto;
}
.sticky-header {
display: none;
margin: auto;
opacity: 0.98;
left: 0;
right: 0;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
z-index: 9998;
}
.sticky-header:before,
.sticky-header:after {
content: " ";
/* 1 */
display: table;
/* 2 */
}
.sticky-header:after {
clear: both;
}
.sticky-header .logo {
float: left;
overflow: hidden;
max-height: 70px;
padding: 17px 0;
margin: 0;
}
.sticky-header .nav-main {
float: right;
}
.sticky-header .sf-menu > li > a {
line-height: 60px !important;
padding: 0;
}
.sticky-header .sf-menu > li:hover > ul,
.sticky-header .sf-menu > li.sfHover > ul {
top: 60px;
}
.sticky-header .sf-menu > li:last-child > a {
padding-right: 0;
}
.sticky-header .menu-no-found {
line-height: 70px;
}
body.admin-bar .sticky-header {
top: 32px !important;
}
答案 0 :(得分:0)
尝试
说您的徽标具有班级徽标
.logo{
position:relative;
left:15px//adjust accordingly
}