Tech Support Forum

Tech Support Forum (http://www.techsupportforum.com/forums/)
-   Web Design & Development (http://www.techsupportforum.com/forums/f49/)
-   -   Help me with my Spry Navigation! (http://www.techsupportforum.com/forums/f49/help-me-with-my-spry-navigation-639299.html)

konradgoat 04-06-2012 06:48 AM

Help me with my Spry Navigation!
 
Anyone know why my Spry Navigation Keeps showing me the following
http://img337.imageshack.us/img337/5717/help200.png
The Brown thing when you click on the top things, it shouldn't be doing this. I looked through the CSS and I cant see anything wrong with it.

If you look below, you can see the code used for the navigation + CSS
My Navigation looks like/wanting to look like this including the hover states

This is what I want my navigation to look like hence the multipe ' '

HTML Code:

<nav id="menu">
  <ul id="MainNav">
  <li><a href="#">MAURITIUS</a>
            <ul>
                      <li><a href="#">VILLAS</a></li>
                      <li><a href="#">HOTELS</a></li>
                    <li><a href="#">YACHTS</a></li>
                <li><a href="#">CAR RENTALS</a></li>
                      <li><a href="#">TRANSFERS</a></li>
                <li><a href="#">CONCIERGE</a></li>
            <li><a href="#">WEDDINGS</a></li>
              </ul>
<li> <a href="#">SEYCHELLES</a>
          <ul>
                      <li><a href="#">VILLAS</a></li>
                      <li><a href="#">HOTELS</a></li>
                      <li><a href="#">YACHTS</a></li>
                          <li><a href="#">OTHER SERVICES</a></li>
      </ul>
<li><a href="#">ZANZIBAR</a>
                      <ul>
                      <li><a href="#">COMING SOON</a></li>
                  </ul>
<li><a href="#">MADAGASCAR</a>
                      <ul>
                      <li><a href="#">COMING SOON</a></li>
                  </ul>
<li><a href="#">SRI LANKA</a>
              <ul>
                      <li><a href="#">COMING SOON</a></li>
            </ul>
            &nbsp;&nbsp;&nbsp;&nbsp;
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        &nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        &nbsp;&nbsp;&nbsp;&nbsp;         
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        &nbsp;&nbsp;&nbsp;&nbsp;
                                    &nbsp;&nbsp;&nbsp;&nbsp;
            <li><a href="#">YOUR STAY</a>
                                  <ul>
                      <li><a href="#">COMING SOON</a></li>
                  </ul>
            <li><a href="#">ABOUT US</a>
                                  <ul>
                      <li><a href="#">COMING SOON</a></li>
                  </ul>
            <li><a href="#">HOME</a></li>
            </ul>
</li>

HTML Code:

@charset "UTF-8";

       




/* Caution: because ID+class selectors do not work properly in IE6, but we want to restrict these rules to just this
widget instance, we have used string-concatenated classnames for our selectors for the layout type of the menubar
in this section. These have very low specificity, so be careful not to accidentally override them. */

.MenuBar br { /* using just a class so it has same specificity as the ".MainNavFixedCentered br" rule bleow */
        display:none;
}
.MainNavLeftShrink {
        float: left;
}
.MainNavRightShrink {
        float: right; /* shrink to content, as well as float the MenuBar */
        width: auto;
}
.MainNavFixedLeft {
        float: left;
        width: 80em;
}
.MainNavFixedCentered {
        float: none;
        width: 80em;
        margin-left:auto;
        margin-right:auto;
}
.MainNavFixedCentered br {
        clear:both;
        display:block;
}
.MainNavFixedCentered .SubMenu br {
        display:none;
}
.MainNavFullwidth {
        float: left;
        width: 100%;
}

/* Top level menubar items - these actually apply to all items, and get overridden for 1st or successive level submenus */
#MainNav  .MenuItemContainer {
        padding: 0px 0px 0px 0px;
        margin: 0;        /* Zero out margin  on the item containers. The MenuItem is the active hover area.
                                For most items, we have to do top or bottom padding or borders only on the MenuItem
                                or a child so we keep the entire submenu tiled with items.
                                Setting this to 0 avoids "dead spots" for hovering. */
}
#MainNav  .MenuItem {
        padding: 0px 0px 0px 0px;
        border:none;
}
#MainNav  .MenuItemFirst {
        border:none;
}
#MainNav .MenuItemLast {
        border:none;
}

#MainNav  .MenuItem  .MenuItemLabel{
        text-align:center;
        line-height:1.4em;
        color:#fecd33;
        padding: 3px 8px 6px 5px;
        width: 5%;
}
.SpryIsIE6 #MainNav  .MenuItem  .MenuItemLabel{
        width:1em; /* Equivalent to min-width in modern browsers */
}

/* First level submenu items */
#MainNav .SubMenu  .MenuItem {
        font-family: "Century Gothic", Arial, sans-serif;
        font-weight: bold;
        font-size: 14.5px;
        font-style: normal;
        filter:
        padding:0px 1px 0px 0px;
        border:none;
        /* Border styles are overriden by first and last items */
                background: url(../_images/nav3.png) repeat-x;
}
#MainNav  .SubMenu .MenuItemFirst {
        border:none;
}
#MainNav  .SubMenu .MenuItemFirst .MenuItemLabel{
        padding-top: 6px;
}
#MainNav .SubMenu .MenuItemLast {
        border:none;
}
#MainNav .SubMenu .MenuItemLast .MenuItemLabel{
        padding-bottom: 6px;
}
#MainNav .SubMenu .MenuItem .MenuItemLabel{
        text-align:left;
        line-height:1em;
        color:#4D7191;
        padding: 6px 12px 6px 5px;
        width: 7.5em;
        background: url(../_images/nav3.png) repeat-x;
}

/* Hover states for containers, items and labels */
#MainNav .MenuItemHover {
        background-color: #021c32;
        border: none;
}

#MainNav .MenuItemWithSubMenu.MenuItemHover .MenuItemLabel{
        background-color: #021c32; /* consider exposing this prop separately*/
        color: #e7fcff;
        border: none;
}
#MainNav .MenuItemHover .MenuItemLabel{
        color: #e7fcff;
        border: none;
}
#MainNav .SubMenu .MenuItemHover {
        border:none;
        border: none;
}

#MainNav .SubMenu .MenuItemHover .MenuItemLabel{
        color: #FECD33;
        background: transparent;
        border: none;
}
/* Submenu properties -- First level of submenus */
#MainNav .SubMenuVisible {
        min-width:0%;
        border:none;
}
#MainNav.MenuBar .SubMenuVisible {/* For Horizontal menubar only */
        top: 100%;        /* 100% is at the bottom of parent menuItemContainer */
        left:0px; /* 'left' may need tuning depending upon borders or padding applied to menubar MenuItemContainer or MenuItem,
                                        and your personal taste.
                                        0px will left align the dropdown with the content area of the MenuItemContainer. Assuming you keep the margins 0
                                        on MenuItemContainer and MenuItem on the parent
                                        menubar, making this equal the sum of the MenuItemContainer & MenuItem padding-left will align
                                        the dropdown with the left of the menu item label.*/
        z-index:10;
}
#MainNav.MenuBarVertical .SubMenuVisible {
        top: 0px;       
        left:100%;
        min-width:0px; /* Do not neeed to match width to parent MenuItemContainer - items will prevent total collapse */
}
/* Submenu properties -- Second level submenu and beyond - these are visible descendents of .MenuLevel1 */
#MainNav .MenuLevel1 .SubMenuVisible {
        min-width:0px; /* Do not neeed to match width to parent MenuItemContainer - items will prevent total collapse*/
        top: 0px;        /* If desired, you can move this down a smidge to separate top item''s submenu from menubar -
                                that is really only needed for submenu on first item of MenuLevel1, or you can make it negative to make submenu more
                                vertically 'centered' on its invoking item */
        left:100%; /* If you want to shift the submenu left to partially cover its invoking item, you can add a margin-left with a
                                negative value to this rule. Alternatively, if you use fixed-width items, you can change this left value
                                to use px or ems to get the offset you want. */
}
/* IE6 rules - you can delete these if you do not want to support IE6 */

/* A note about multiple classes in IE6.
 * Some of the rules above use multiple class names on an element for selection, such as "hover" (MenuItemHover) and "has a subMenu" (MenuItemWithSubMenu),
 * giving the selector '.MenuItemWithSubMenu.MenuItemHover'.
 * Unfortunately IE6 does not support using mutiple classnames in a selector for an element. For a selector such as '.foo.bar.baz', IE6 ignores
 * all but the final classname (here, '.baz'), and sets the specificity accordingly, counting just one of those classs as significant. To get around this
 * problem, we use the plugin in SpryMenuBarIEWorkaroundsPlugin.js to generate compound classnames for IE6, such as 'MenuItemWithSubMenuHover'.
 * Since there are a lot of these needed, the plugin does not generate the extra classes for modern browsers, and we use the CSS2 style mutltiple class
 * syntax for that. Since IE6 both applies rules where
 * it should not, and gets the specificity wrong too, we have to order rules carefully, so the rule misapplied in IE6 can be overridden.
 * So, we put the multiple class rule first. IE6 will mistakenly apply this rule.  We follow this with the single-class rule that it would
 * mistakenly override, making sure the  misinterpreted IE6 specificity is the same as the single-class selector, so the latter wins.
 * We then create a copy of the multiple class rule, adding a '.SpryIsIE6' class as context, and making sure the specificity for
 * the selector is high enough to beat the single-class rule in the "both classes match" case. We place the IE6 rule at the end of the
 * css style block to make it easy to delete if you want to drop IE6 support.
 * If you decide you do not need IE6 support, you can get rid of these, as well as the inclusion of the SpryMenuBarIEWorkaroundsPlugin.js script.
 * The 'SpryIsIE6' class is placed on the HTML element by  the script in SpryMenuBarIEWorkaroundsPlugin.js if the browser is Internet Explorer 6. This avoids the necessity of IE conditional comments for these rules.
 */
.SpryIsIE6 #MainNav .MenuBarView .MenuItemWithSubMenuHover .MenuItemLabel /* IE6 selector  */{
        background-color: #021c32; /* consider exposing this prop separately*/
        color: #e7fcff;
        border: none;
}
.SpryIsIE6 #MainNav .MenuBarView .SubMenu .MenuItemWithSubMenuHover .MenuItemLabel/* IE6 selector  */{
        background:url(../_images/nav3.png) repeat-x; /* consider exposing this prop separately*/
        color: #333333;
        border: none;
}
.SpryIsIE6 #MainNav .SubMenu .SubMenu  /* IE6 selector  */{
        margin-left: -0px; /* Compensates for at least part of an IE6 "double padding" version of the "double margin" bug */
}


/* SpryMenuBasic.css - version 0.5 - Spry Pre-Release 1.7 */

/* Copyright (c) 2010. Adobe Systems Incorporated. All rights reserved. */

/* This is the css for a basic Spry 2 MenuBar.
 * The first section is basic layout, and should in general not need to be  modified.
 * The final section of this file specifies images to use for arrows for the menu. These
 * are either down or right-pointing as required by horizonatal or vertical layouts. You
 * can either replace the referenced images with your own, or you can modify these rules to
 * point to your won images.
 *
 * These rules are supplemented by those specified in the OAM file for inclusion in the html document,
 * or alternatively, the file SpryMenuBarBasicSkin.css which is included with this widget. */
 
/* Resets for ul and li in menus */
.MenuBar  .MenuBarView, .MenuBar  .SubMenuView {
        display:block;
        list-style:none;
        margin:0;
        padding:0;       
}

/*** Layout Rules for Basic Menu ***/

/* Top Level MenuBar
 * Because we float the MenuItemContainers in the MenuBar, we have to make sure the menubar wrapper expands to hold them all.
 * The simplest way is to float the widget wrapper
 */
.MenuBar { /* overridden by .MenuBarVertical version of this rule */
        float:left;
        width:100%;
}
.MenuBarVertical {
        float:left;        /* Used to make menubar shirink to fit contents */
        width:auto;
}

/* SubMenus */
.MenuBar .SubMenu {
        display:block;
        position:absolute;
        top:0;
        left:-10000px; /* By default, all non-visible submenus are hidden by moving way to the west */
        padding:0;
}
/* First level of submenus - pulls down from horizontal menubar, right from vertical */
.MenuBar .SubMenuVisible{ /* overridden by .MenuBarVertical version of this rule */
        top:100%;
        left:0px;
}
.MenuBarVertical .SubMenuVisible {
        top:0px;
        left:100%;
}
/* All submenus below level 1. All pullout to the right */
.MenuBar .SubMenu .SubMenuVisible {
        display:block;
        position:absolute;
        top:0px;
        left:100%;
}

/* MenuItems, MenuItemLabels, and MenuItemContainers */
.MenuBar .MenuItem {
        display:block;
        text-decoration:none;
}
.MenuBar .MenuItemLabel {
        display:block;
}
.MenuBar .MenuItemContainer {
        position:relative;
        white-space:nowrap;
        float:left; /* overridden by .MenuBarVertical version of this rule */
        display:block;
        margin:0;
        padding:0;       
}
.MenuBarVertical .MenuItemContainer {
        float:none;
}
.MenuBar .SubMenu .MenuItemContainer {
        float:none;
}

/* Layout Rules needed by IE6 - excluded from other browsers */
.SpryIsIE6 .SubMenu .SubMenu {
        width:100px;
        height:1%;
}
.SpryIsIE6 .MenuBar .SubMenuVisible .SubMenuVisible {
        width:auto;
}
/* End Layout section */

/*
* Arrows - This section specifies arrow images for a submenu dropdowns in Basic SpryMenu.
*/
.MenuBar .MenuItemLabel{
        background-image:none;
}

/* For all arrows used here, we depend upon the image to push itself away from right edge, or the user can add right padding to the MenuItem */
.MenuBar .MenuItemWithSubMenu .MenuItemLabel{
        background-image:url("../_scripts/css/Menu/basic/images/ArrowMenuDown.gif");
        background-position:right center;
        background-repeat:no-repeat;
}
.MenuBar .MenuItemHover.MenuItemWithSubMenu .MenuItemLabel{
        background-image:url("../_scripts/css/Menu/basic/images/ArrowMenuDown.gif");
        background-position:right center;
        background-repeat:no-repeat;
}
.MenuBarVertical .MenuItemHover.MenuItemWithSubMenu .MenuItemLabel{
        background-image:url("../_scripts/css/Menu/basic/images/ArrowMenuRight.gif");
        background-position:right center;
        background-repeat:no-repeat;
}
.MenuBarVertical .MenuItemWithSubMenu .MenuItemLabel{
        background-image:url("../_scripts/css/Menu/basic/images/ArrowMenuRight.gif");
        background-position:right center;
        background-repeat:no-repeat;
}
.MenuBar .SubMenu .MenuItemWithSubMenu .MenuItemLabel{
        background-image:url("../_scripts/css/Menu/basic/images/ArrowMenuRight.gif");
        background-position:right center;
        background-repeat:no-repeat;
}
.MenuBar .SubMenu .MenuItemHover.MenuItemWithSubMenu .MenuItemLabel{
        background-image:url("../_scripts/css/Menu/basic/images/ArrowMenuRight.gif");
        background-position:right center;
        background-repeat:no-repeat;
}

/* IE6 rules for Arrows */
.SpryIsIE6 .MenuBar .MenuItemWithSubMenuHover .MenuItemLabel{
        background-image:url("../_scripts/css/Menu/basic/images/ArrowMenuDown.gif");
        background-position:right center;
        background-repeat:no-repeat;
}
.SpryIsIE6 .MenuBarVertical .MenuItemWithSubMenuHover .MenuItemLabel{
        background-image:url("../_scripts/css/Menu/basic/images/ArrowMenuRight.gif");
        background-position:right center;
        background-repeat:no-repeat;
}
.SpryIsIE6 .MenuBar .SubMenu .MenuItemWithSubMenuHover .MenuItemLabel{
        background-image:url("../_scripts/css/Menu/basic/images/ArrowMenuRight.gif");
        background-position:right center;
        background-repeat:no-repeat;
}


wmorri 04-06-2012 07:55 AM

Re: Help me with my Spry Navigation!
 
Hi,

You have told me what your nav bar shouldn't be doing, but you have told me what you want it too do. I will take a look at it this weekend. Also why do you have so many &nbsp tags in your html?

konradgoat 04-06-2012 07:56 AM

Re: Help me with my Spry Navigation!
 
Quote:

Originally Posted by wmorri (Post 3690443)
Hi,

You have told me what your nav bar shouldn't be doing, but you have told me what you want it too do. I will take a look at it this weekend. Also why do you have so many &nbsp tags in your html?

So there is a gap between those 'navigations' You can see what basically I am trying to do.

konradgoat 04-07-2012 04:47 AM

Re: Help me with my Spry Navigation!
 
Quote:

Originally Posted by wmorri (Post 3690443)
Hi,

You have told me what your nav bar shouldn't be doing, but you have told me what you want it too do. I will take a look at it this weekend. Also why do you have so many &nbsp tags in your html?

Also, see the screenshot, You see a brown thing around SRI LANKA

wmorri 04-07-2012 05:36 AM

Re: Help me with my Spry Navigation!
 
I see the outline around it. Is there something different that you want done with it?

konradgoat 04-07-2012 09:09 AM

Re: Help me with my Spry Navigation!
 
Quote:

Originally Posted by wmorri (Post 3691399)
I see the outline around it. Is there something different that you want done with it?

Ive fixed it, except, when I preview this file inside Internet Explorer, it doesn't display correctly. I believe the javascript is causing this issue.

wmorri 04-07-2012 09:43 AM

Re: Help me with my Spry Navigation!
 
Can you post the javascript.

konradgoat 04-07-2012 03:37 PM

Quote:

Originally Posted by wmorri
Can you post the javascript.

It's ok on my test server but IE has a problem with floats, preview the link below in chrome and IE

http://www.sa-armedservices.net/Eleg..._menu_test.htm

Try and access java from there, ain't at my computer

wmorri 04-07-2012 03:57 PM

Re: Help me with my Spry Navigation!
 
I see a couple of problems to start with your nav bar doesn't match when I look at it in IE and Chrome. I haven't checked the other browsers yet. I haven't looked at the code yet, but I am sure that there is a simple fix that can be made. I might look into some of the IE fixes that are out there too. Most of them are for html5 but should work for html4, as well.

There is a problem with your drop-down menu as it isn't wide enough. I am thinking that there is something we can do with that. Maybe a form and a submit button. I will work on putting something together for you on that.

If there is anything else that you are interested in doing for your site you let me know and I will try and put it together for you.

Cheers!

konradgoat 04-07-2012 11:02 PM

Today I will send you a screenshot of the main page. There a couple of things on there that I don't know how to make and things.

For example a box where someone can fill there email for a newsletter.

The new website is based off our old one and should attract more customers

Www.elegantdestinations.co.uk

konradgoat 04-08-2012 05:12 AM

Re: Help me with my Spry Navigation!
 
Quote:

Originally Posted by wmorri (Post 3692063)
I see a couple of problems to start with your nav bar doesn't match when I look at it in IE and Chrome. I haven't checked the other browsers yet. I haven't looked at the code yet, but I am sure that there is a simple fix that can be made. I might look into some of the IE fixes that are out there too. Most of them are for html5 but should work for html4, as well.

There is a problem with your drop-down menu as it isn't wide enough. I am thinking that there is something we can do with that. Maybe a form and a submit button. I will work on putting something together for you on that.

If there is anything else that you are interested in doing for your site you let me know and I will try and put it together for you.

Cheers!

Website is Build over HTML5 (Or Supposed to be)

http://i602.photobucket.com/albums/t...vedicons-1.jpg

Above is the photoshop design of the front page. The site is in Two Langugues; English & French

Our email wont be a 'public' email which is easy to copy and paste maybe, we dont want people (robots) to send out spam to our company.

2) How do I put in those icons above the navigation bar (Far Right)

4) How to I link Wordpress & Twitter to be able to post like that on the right box below the Photo

konradgoat 05-09-2012 02:51 PM

Any response?

wmorri 05-09-2012 03:25 PM

Re: Help me with my Spry Navigation!
 
Hi,

I will take a look at this tonight. I am on my laptop right now so I can't do a good job of looking at the code but in a bit I will be at my desktop where I can do some looking and help you better.

wmorri 05-09-2012 07:56 PM

Re: Help me with my Spry Navigation!
 
To add those to your website, all you need to do is get image files for each of those. then link them to the website that you want to to go to.

If you have some code for the section I can take a look at it for you.

konradgoat 05-11-2012 06:48 AM

Re: Help me with my Spry Navigation!
 
Quote:

Originally Posted by wmorri (Post 3728235)
To add those to your website, all you need to do is get image files for each of those. then link them to the website that you want to to go to.

If you have some code for the section I can take a look at it for you.

I have the navigation bar, icons setup
I am going to have a form based thing working as well soon

just need that Wordpress/twitter thing for moment

wmorri 05-11-2012 08:03 AM

Re: Help me with my Spry Navigation!
 
Do you know the links for which you want them to go to, I can point you in the write direction for getting those images. Although I am sure you got them somewhere when you made that design. Start by doing an image search for Twitter image, and WordPress image or icon. I am confident that you will find what you are looking for.

konradgoat 05-12-2012 02:44 AM

Re: Help me with my Spry Navigation!
 
The wordpress which and twitter thing on the main page will like get the latest tweets/blog posts and display them on the main page

wmorri 05-12-2012 05:06 AM

Re: Help me with my Spry Navigation!
 
If you want to have your latest tweets showing you will need to use the twitter api. Have a look at How To Display Your Last Tweet Using Javascript And The Twitter API.

As for wordpress you will need to add a little php to your website. See How to display recent posts outside WordPress.


All times are GMT -7. The time now is 01:59 AM.


Copyright 2001 - 2012, Tech Support Forum