Hi, after i installed the upgrade, the menu now moved to the right by a few pixels from the background area...distorting what i had before.
i am attaching 2 images of the menu how it looks after and before the install.
i have the images from 2 drupal same templates setup, separated from each other, that i have.

CommentFileSizeAuthor
superfish-after.gif24.65 KBvhiering
superfish-before.gif22.76 KBvhiering

Comments

mehrpadin’s picture

Category: bug » support

Hey there,

It's probably caused by the newly added menu class, this should fix it:

.sf-menu,
.sf-menu ul {
  margin: 0 !important;
}
DMeerts’s picture

I do not know what I'm doing wrong but I still have this problem. I added the above margin but the problem stays.

mehrpadin’s picture

Daan,
Need to see it, email me the URL if it's online.

DMeerts’s picture

The url is https://94.212.153.62/ruimteschip/

This is the code.

.sf-menu,
.sf-menu ul {
margin: 0 !important;
}

.sf-menu {
float: left;
margin-bottom: 0em;
padding: 0px;
}

.sf-menu.sf-navbar {
width: 100%;
}

.sf-menu ul {
padding: 0 10px 10px 0;
-moz-box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.5);
box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.5);
}

.sf-shadow ul {
/*background: url('../images/shadow.png') no-repeat bottom;*/
padding: 0;
-moz-border-radius-bottomleft: 0px;
-moz-border-radius-topright: 0px;
-webkit-border-top-right-radius: 0px;
-webkit-border-bottom-left-radius: 0px;
background: #fff;
filter:alpha(opacity=90);
opacity: 0.9;
-moz-opacity:0.9;
}

.sf-menu li a,
.sf-menu a:visited,
.sf-menu a
{
border-left: 0px solid #999;
border-right: 0px solid #999;
padding: 0.75em 1em;
text-decoration: none;
color: #fff;
}

.sf-menu a:hover,
.sf-menu a.sfHover
{
background: #fff;
color: #000;
text-decoration: none;
}

.sf-menu > li:hover > a, .sf-menu > li.sfHover > a
{

color: #fff;
text-decoration: none;
background: url(../images/superfish_1.png);
}

.sf-menu li li a,
.sf-menu li li a:visited
{
color: #fff;
background: #F31554;

}

.sf-menu li li.sfHover,
.sf-menu li li a.sfHover,
.sf-menu li li:hover,
.sf-menu li li a:hover
{
border-left: 0px solid #000;
border-right: 0px solid #000;
border-top: 0px solid #000;
border-bottom: 0px solid #000;
background: #2757A5;
outline: 0;
/* background: url(../images/1.png);*/
color: #fff;
filter:alpha(opacity=100);
opacity: 1;
-moz-opacity: 1;
}

vhiering’s picture

Thanks. I am just noticing you had replied.

question: where do i locate the file where to insert the code you are mentioning?
sorry if the question is too basic but i am not a programmer but html and css coder.
i cannot locate a css folder/file inside the superfish folder and i cannot find the code inside the css folder my template is using.

also, were you able to solve the problem for the 2nd inquirer?

thank you

vhiering’s picture

Hi Daan, were you able to resolve the menu layout problem? i am the one who posted about this issue first. thanks for anything you can share.

vhiering’s picture

Mehrpadin, this is the code i have inside my css file:

=====================
#block-superfish-1 { border-top:1px solid #ececec; width:100%;}
#superfish-1 { margin:0px; width:auto; position:relative; background:none; float:left; -moz-border-radius:10px; -webkit-border-radius:10px; border-radius:10px; background:none}
#superfish-1 li { overflow:inherit; padding:0 2px 0 0; text-align:center; background:url(../images/bg-li.gif) right top no-repeat; border:0;}
#superfish-1 a, #superfish-1 a:visited {
font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
font-size:17px;
color:#fff;
font-weight:normal;
line-height:normal;
text-transform:uppercase;
border:0;
padding:18px 18px 16px !important;
text-decoration:none;
-webkit-transition:background .3s ease-out;
-moz-transition:background .3s ease-out;
background:url(../images/bg-menu-active.png) bottom repeat-x;
}
#superfish-1 > li > a:hover, #superfish-1 > li > a.active, #superfish-1 > li > a.sfHover, #superfish-1 > li.active-trail > a{ color:#fff; background:url(../images/bg-menu-active.png) top repeat-x;}

#superfish-1 ul {
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: #f4f4f4; /* Old browsers */
background: -moz-linear-gradient(top, #f4f4f4 27%, #cccccc 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(27%,#f4f4f4), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #f4f4f4 27%,#cccccc 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #f4f4f4 27%,#cccccc 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #f4f4f4 27%,#cccccc 100%); /* IE10+ */
background: linear-gradient(to bottom, #f4f4f4 27%,#cccccc 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#cccccc',GradientType=0 ); /* IE6-9 */
filter: none;
width:181px !important; border:1px solid #1b1b1b; top:57px !important; display:none; border-radius:0; -webkit-border-radius:0; -moz-border-radius:0; padding:0;}
.sf-navbar > li > ul { margin-top:3px;

}
#superfish-1 ul li {

background: #ededed; /* Old browsers */
background: -moz-linear-gradient(top, #ededed 2%, #b9a372 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(2%,#ededed), color-stop(100%,#b9a372)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ededed 2%,#b9a372 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ededed 2%,#b9a372 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #ededed 2%,#b9a372 100%); /* IE10+ */
background: linear-gradient(to bottom, #ededed 2%,#b9a372 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ededed', endColorstr='#b9a372',GradientType=0 ); /* IE6-9 */
filter: none;
; height:auto; padding:0; border-bottom:1px solid #1b1b1b; }

#superfish-1 ul li a:visited, #superfish-1 ul li a { padding:10px 0 10px 26px !important; text-align:left; border:0; font-family:Arial, Helvetica, sans-serif; font-size:14px; color:#1b1b1b; font-weight:normal; text-transform:none; letter-spacing:normal; -webkit-transition:none; -moz-transition:none; background:url(../images/bg-drop-li.gif) no-repeat 13px 14px !important;}
#superfish-1 ul li a:hover, #superfish-1 ul li a.active { background:url(../images/bg-drop-li2.gif) no-repeat 0 0; color:#be0033;}

#superfish-1 ul li ul{ left:180px !important; top:0 !important; padding:0 !important}
#superfish-1 ul li ul li { margin-bottom:1px; background:none;}
/*#superfish-1 ul li ul li a.active, #superfish-1 ul li ul li a { padding:12px 0 12px 20px; text-align:left; border:0; font-family:"Trebuchet MS", Arial, Helvetica, sans-serif; font-size:13px; color:#fff !important; font-weight:bold; text-transform:uppercase;}
#superfish-1 ul li ul li a:hover{ background:#fff; color:#444444 !important; text-shadow:none}
/****************************************/

#superfish-2 li { padding-left:25px;}
#superfish-2 li a { color:#1b1b1b; font-size:12px; -webkit-transition:color .3s ease-out; -moz-transition:color .3s ease-out;}
#superfish-2 li a.active, #superfish-2 li a:hover { color:#be0033; text-decoration:none;}

==================

am i supposed to add somewhere within the code pasted, your code?:

.sf-menu,
.sf-menu ul {
margin: 0 !important;
}

or where exactly?

i will truly appreciate any basic instruction to help me resolve this problem.

thank you

vhiering’s picture

Hi Mehrpadin, I bought a beautiful template I cannot show yet because of the menu mishap. I cannot locate where to insert the code you mentioned. There are 10 files inside the 'superfish' folder. I opened each. where is the menu class located? of is that a new code I am supposed to paste inside my css folder, inside the superfish class?
I am sorry if my question is too basic for you but what can I say, this is where I am....against a wall.

I will truly appreciate your specific answer.

thanks

mehrpadin’s picture

Status: Active » Fixed

Update: The issue has been fixed some time ago, please try the master branch of the library with the development release.

Anonymous’s picture

Just adding a note that I experienced the exact same issue, even in the most recent development release and the latest version of the Superfish library. Since this is a live website, I reverted back to the 1.8 version for now.

vhiering’s picture

Adding this class fixed it BEAUTIFULLY back to norm!!!

.sf-menu.menu,
.sf-menu.menu ul,
.sf-menu.menu li {
margin: 0;
}

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.