Results 1 to 5 of 5

Thread: Menu problem

  1. #1
    Join Date
    Nov 2006
    Posts
    116
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Menu problem

    Hi Guys,

    I have a problem with my Menus. I think it has to do with the css but not sure. After a added a few menus the background goes black at the bottom. Can anyone tell me what could be the problem?

    I got a temp[late for this website and the original was working fine.

    problem : www.spe.com.fj.

    Its the products menu. right at the bottom it goes black.


    Thanks

  2. #2
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    612
    Thanks
    46
    Thanked 32 Times in 32 Posts

    Default Hi bornfree

    I just started to look and found this so far:

    Code:
    .main {
    	width:940px;
    	padding:0;
    	margin:0 auto;
    	font-size:0.8125em;
    	line-height:1,2307em;
    	text-align: center;
    }
    I have to question the line-height of 1,2307em;

    That could the issue but I am still looking


    Bud

  3. The Following User Says Thank You to ajfmrf For This Useful Post:

    Bornfree (08-22-2011)

  4. #3
    Join Date
    Nov 2006
    Posts
    116
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    Hi Bud,

    Thanks for your help. What should i change it to? I also have another issue. When i click on other menus the they should change to an orange color indicating were the user is but only the home button is always orange.

  5. #4
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    On the home page the home button in the navigation has a class called .active
    You can see it in this part of the html:
    Code:
      <nav>
                    <ul class="sf-menu">
                        <li class="active"><a href="index.html">home</a></li>
                        <li>
                            <a href="products.htm">Products</a>
                          <ul>
    
                         	  Sectional Door Motors</a></li>
                                    </ul>
    On the products page you need to put the class .active inside the <li> tag that surrounds the link to "products.htm". Like this
    Code:
      <nav>
                    <ul class="sf-menu">
                        <li><a href="index.html">home</a></li>
                        <li class="active">
                            <a href="products.htm">Products</a>
                          <ul>
    That will make the products tab orange. Similar changes can be made with the other tabs.

    Regarding the black color at the bottom: it seems to be the background color, set in this part of the superfish.css, that is a bit to dark compared to the lower part of the gradient image ( submenu.png):
    Code:
    .sf-menu ul {
    	position:		absolute;
    	top:			-999em;
    	width:			130px; /* left offset of submenus need to match (see below) */
    	background:url(../images/submenu.png) 0 0 repeat-x #0e0d0d;
    	padding:19px 1px 22px;
    	border-radius:20px;
    	-moz-border-radius:20px;
    	-webkit-border-radius:20px;
    	box-shadow:1px 1px 2px rgba(0,0,0,0.4);
    	-moz-box-shadow:1px 1px 2px rgba(0,0,0,0.4);
    	-webkit-box-shadow:1px 1px 2px rgba(0,0,0,0.4);	
    }
    Unfortunately it also does not look right when I make it a lighter color so maybe the problem is the gradient ( submenu.png) and you may want to make a new smother gradient. Unless someone else has a better suggestion !

  6. The Following User Says Thank You to azoomer For This Useful Post:

    Bornfree (08-22-2011)

  7. #5
    Join Date
    Nov 2006
    Posts
    116
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    Hi Azoomer,

    Thank you very very much. I managaed to solve it. The Menu with the black bottom was solved by creating a new gradient fill image. works perfectly now.

    Thank you once again

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •