Center Text in Spry Menu

Hi there,
I am building a basic website using DW CS4.
I have put together a page that works without messing up the code too much:
http://rcconnelly.net/900Fixed2.html
In the Spry menu I would like to center the text vertically and
have not been able to find a tutuorial that  included this tip.
Can any of you folks get me going in the right direction?
Thanks in advance!
RC

Alright I believe that you put my suggestions somewhere incorrect.  These menubars can be confusing.
The easiest way to  center vertically is to simply make the box that is in a size that makes  the text in the middle.
By this I mean that if this is your box (the ---- is the text)
[        ]      <-----------------| Then the easiest way to make the box fit around the ----- is to get rid  of the bottom [      ]
(just a figurative way of looking at the box, there is no actual division like [  ] its all just one box)
You can do that by setting a height for the boxes. The height for the boxes is controlled by a particular div element. By default the height is left blank, which usually works because then it auto formats but in your case it does not appear to be working.
We get rid of the bottom [      ] by setting the entire box's height to 35 px (which leaves enough room for the text to still show).
Here is the code you want to modify. It is the second sub section down from the top. Pay attention to the CSS notes put there by the Adobe spry designer.
/* Menu item containers, position children relative to this container and are same fixed width as parent */
ul.MenuBarVertical li
     margin: 0;
     padding: 0;
     list-style-type: none;
     font-size: 100%;
     position: relative;
     text-align: left;
     cursor: pointer;
     width: 175px;
        height: 35px;
     border-top-style: none;
     border-right-style: none;
     border-bottom-style: none;
     border-left-style: none;
If this does not work (make sure to update the live view or click the little globe icon to preview in
a browser, or right click on the home page in your local files and click put to view on your actual remote
server)then there might be another problem via a div box from the layout that is overriding it. If what I said
above does not work then try visiting this part in the test stylesheet, and modify both the padding and
width and height to see if that is the problem. The spry vertical menu might be trying to expand itself to fit in
that div or another div somewhere on the page.
.twoColFixLtHdr #sidebar1 {
     float: left; /* since this element is floated, a width must be given */
     width: 200px; /* the background color will be displayed for the length of the content in the column, but no further */
     padding: 15px 10px 15px 20px;
     background-color: #F5E7B6;
I hope this all helped. If not, then I'm sorry- it's kind of hard to tell you exactly what to do, its much easier just
to go through and change some stuff and troubleshoot it in dreamweaver. When messing around with the code, you should
probably make an effort to edit the actual code and not use the built in interface, because its easier to lose
track with the interface than when you actually go in and edit a part.
Also, if you are new to CSS like you said, you might want to try to grasp the basics. Here is a good page to look through:
http://www.adobe.com/devnet/dreamweaver/css.html
Good luck!

Similar Messages

  • ? How to add Flash text to Spry menu/tabbed panel

    Hello,
    Is there anyone who knows if it is possible to add flash text
    to a tabbedpanel or spry menubar?
    can you point me in any direction if possible or not ?
    Thanks
    -Lars

    Hello,
    Is there anyone who knows if it is possible to add flash text
    to a tabbedpanel or spry menubar?
    can you point me in any direction if possible or not ?
    Thanks
    -Lars

  • How to Center Text in Menu and Left Align in Sub Menu

    Hi - I'm looking to Center the text in the main menu of a Spry Menu in DW CS 5.5 but left align the sub menu's.
    If someone could point me in the right direction it would be much appreciated.
    Thanks
    J

    See here http://labs.adobe.com/technologies/spry/samples/menubar/CenteringHorizontalMenuBarSample.h tml
    Gramps

  • Trying to Center a Spry Menu bar.

    Hi
    I must be a bit stupid as I really can't work this out.... How do I center a Spry menu bar?
    I have tried putting the code in the head of the document page as follows, but it is not working.
    <link href="../../widgets/menubar/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    /* Give the menu bar a width and set the margins to "auto"
    * so that the browser does the centering.
    ul.MenuBarHorizontal {
         width: 32.2em;
         margin: auto;
    -->
    </style>
    What am I doing wrong?
    Also, If my page is a fixed width of 850px how wide should I make the width of the menu bar?
    Many thanks
    Piupiutoo

    Have a look here: http://foundationphp.com/tutorials/sprymenu/centering.php
    I hope it helps.
    Ben

  • Center spry menu

    Hello, I am trying to center my spry menu however I am having some trouble. I am trying to create a fluid layout so I have a <div> where my content will go and I set its width to 80%. Here is the CSS for the menu. Thanks.
    @charset "UTF-8";
    /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    LAYOUT INFORMATION: describes box model, positioning, z-order
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
              padding: 0;
              list-style-type: none;
              font-size: 90%;
              cursor: default;
              width: 100%;
              font-weight: bold;
              margin: 0 auto;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
              z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
              margin: 0;
              padding: 0;
              list-style-type: none;
              font-size: 100%;
              position: relative;
              text-align: left;
              cursor: pointer;
              width: 18%;
              float: left;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
              margin: 0;
              padding: 0;
              list-style-type: none;
              font-size: 100%;
              z-index: 1020;
              cursor: default;
              width: 80%;
              position: absolute;
              left: -1000em;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
              left: auto;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
              width: 100%;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
              position: absolute;
              margin: -5% 0 0 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
              left: auto;
              top: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
              border: 1px solid #CCC;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
              display: block;
              cursor: pointer;
              background-color: #EEE;
              padding: 0.5em 0.75em;
              color: #333;
              text-decoration: none;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
              background-color: #33C;
              color: #FFF;
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
              background-color: #33C;
              color: #FFF;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
              background-image: url(SpryMenuBarDown.gif);
              background-repeat: no-repeat;
              background-position: 95% 50%;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
              background-image: url(SpryMenuBarRight.gif);
              background-repeat: no-repeat;
              background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
              background-image: url(SpryMenuBarDownHover.gif);
              background-repeat: no-repeat;
              background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
              background-image: url(SpryMenuBarRightHover.gif);
              background-repeat: no-repeat;
              background-position: 95% 50%;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
              position: absolute;
              z-index: 1010;
              filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
              ul.MenuBarHorizontal li.MenuBarItemIE
                        display: inline;
                        f\loat: left;
                        background: #FFF;

    Try
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet">
    <style>
    ul.MenuBarHorizontal {
        max-width: 50em; /* change to suit */
        margin: auto;
    ul.MenuBarHorizontal li {
       width: 25%; /* 4 main menu items x 25% = 100% */
    </style>
    </head>
    <body>
    <ul id="MenuBar1" class="MenuBarHorizontal">
      <li><a class="MenuBarItemSubmenu" href="#">Item 1</a>
        <ul>
          <li><a href="#">Item 1.1</a></li>
          <li><a href="#">Item 1.2</a></li>
          <li><a href="#">Item 1.3</a></li>
        </ul>
      </li>
      <li><a href="#">Item 2</a></li>
      <li><a class="MenuBarItemSubmenu" href="#">Item 3</a>
        <ul>
          <li><a class="MenuBarItemSubmenu" href="#">Item 3.1</a>
            <ul>
              <li><a href="#">Item 3.1.1</a></li>
              <li><a href="#">Item 3.1.2</a></li>
            </ul>
          </li>
          <li><a href="#">Item 3.2</a></li>
          <li><a href="#">Item 3.3</a></li>
        </ul>
      </li>
      <li><a href="#">Item 4</a></li>
    </ul>
    <script src="SpryAssets/SpryMenuBar.js"></script>
    <script>
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>

  • Multiple text colors in my spry menu

    Can I make multiple text colors in my spry menu? I want to match the text color on one of my spry menu items to the hover color so that you know which link you are currently visiting. I haven't posted the site yet until I work out all the kinks. So, to summarize, I have my spry menu link text color (ul.MenuBarVertical a) set to #E00 and my hover color for those items (ul.MenuBarVertical a.MenuBarItemHover) set to #888. All of the links also contain the same spry menu. I would like the link you're currently in to be #888 and the other links to be #E00 with all of them hovering with color #888. How can I give unique color to an individual menu item? Any help you can give is much appreciated!

    Sorry to bug you again. I implemented your suggestion as you can see in this partial pageview:
    <script src="SpryAssets/SpryDOMUtils.js"></script>
    <script src="js/navbar-select.js"></script>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    ul.MenuBarHorizontal a#button1:hover, ul.MenuBarHorizontal a#button1:focus
    { color:#625647; }
    </style>
    </head>
    <body>
    <div id="team-vision" class="container">
    <div class="header"> <a href="#"><img  id="logo" src="images/logo_i.png" width="215" height="36" alt="Greiner Engineering"></a>
    <ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a href="index.html">INTRO</a>|</li>
    <li><a href="ger-vision.shtml">VISION</a>|</li>
    <li><a href="ger-2firmen.shtml">2FIRMEN</a>|</li>
    <li><a href="#">PROJEKTE</a>|</li>
    <li><a href="ger-network.shtml">NETZWERK</a>|</li>
    <li><a href="ger-contact.shtml"  id="button1" class="MenuBarItemSubmenu">KONTAKT</a>|
    <ul>
    <li><a href="ger-contact.shtml">ADRESSEN</a></li>
    <li><a href="ger-team.shtml">TEAM</a></li>
    <li><a href="ger-location.shtml">LAGEPLAN</a></li>
    </ul>
    </li>
    <li><a href="ger-links.shtml">LINKS</a>|</li>
    <li><a href="ger-publications.shtml">VERÖFFENTLCHUNGEN</a>|</li>
    <li><a href="ger-jobs.shtml" class="MenuBarItemSubmenu">JOBS</a>|
    <ul>
    <li><a href="ger-jobs.shtml">OFFENE STELLEN</a></li>
    <li><a href="ger-practice.shtml">PRAKTIKUM</a></li>
    <li><a href="ger-thesis.shtml">DIPLOMARBEIT</a></li>
    </ul>
    </li>
    <li><a href="ger-impressum.shtml">IMPRESSUM</a>|</li>
    </ul>
    </div>
    I did this in ger-kontakt.shtml, ger-team.shtml, ger-location.shtml
    but it does not leave KONTAKT highlighted.
    If you want to check it out my url is http:/www.lsdcoach.com/greiner-engineering. Select GERMAN and the click on KONTAKT. The other menu items without a submenu work great.

  • Spry Menu Bar text mirrored in IE

    I'm making my first website with Dreamweaver.  So far, I've managed to figure out all my problems on my own.  This one, though, is just weird.  My webpage looks fine on Firefox but when I load it up on Internet Explorer, my menu bar text (ex:Home) reads mirrored.  Not backwards like "emoH" but completely mirrored.  I have no idea how to fix this or why it happened.  When I press the Compatibility View button IE has, it fixes it though..

    You can safely remove the red coloured part
    ul.MenuBarHorizontal a
        display: block;
        cursor: auto;
        background-color: #F3FCF7;
        padding: 0.5em 0.75em;
        color: #000;
        text-decoration: none;
        text-align: center;
        text-transform: none;
        list-style-type: none;
        filter: FlipH;

  • Center Spry Menu Horizontal Bar

    My spry menu bar has 7 items with no sub menus.
    The menu looks fine but it's up against the left hand border and I am having a terrible time trying to center on the page.

    TerryGV, David Powers has given you the best advice, and you have followed it...and it works!
    Dreamweaver is not a push-button, automated, all-is-fixed-in-a-single-click type of program. Results with those programs are restricted to the actions that can be pre-supposed by the engineers.
    With Dreamweaver, you have the freedom and breadth of possibilities (and sometimes the labor) that come with that lack of second-guessing by others.
    What you have done is basic CSS. Once you get a good understanding of Cascading Style Sheets, you will find you will not be wishing for automated solutions as much.
    Beth

  • Spry menu link text cut off in IE8

    I have built a website in Dreamweaver using a horizontal spry menu bar. The site works everywhere when I tested it in all browsers on several different computers. However, when someone else checked it on their computer, the text on the links is cut off. Like where the link says Neurosurgery, it bumps up against the edge of that link and cuts off half of the word. The shorter text links aren't cut off, but they aren't centered. They are using IE 8, which I checked it on and it worked fine on my computer. Turns out his computer isn't the only one doing this, but I can't seem to replicate the problem on my computer even though we are using the same browser. I have had him clear his cache and it hasn't helped. The site is kyneurosurgery.com. I included a photo of what the text is doing on the other computer. I'm not sure how to even begin trying to fix the problem since I can't see it on my computer.

    Please read the following.
    How to Get Help Quickly
    This is a user-to-user forum. Unless you see EMPLOYEE under a screen name, you should assume the poster is an upaid volunteer. Everyone's time is valuable, including yours. The following tips will help you get answers more quickly:
    DO
    Check the Dreamweaver FAQ. The answer to your question might already be there.
    Give your post a meaningful subject line, indicating of the nature of the problem.
    Give sufficient details (such as operating system, browser, hardware platform, and other relevant information) for others to understand the nature of the problem, but don't go overboard. Short, focused questions tend to get answered more quickly.
    If your problem concerns a web page that doesn't display as expected, upload the page to a public website and give the URL. But don't post links to anything you don't want indexed by a search engine. Create a test folder on the site, and remove the page when the problem has been solved.
    Give details of any error messages.
    Say briefly what you have done to try to solve the problem yourself.
    If your question involves a database or server-side technology, such as PHP, ColdFusion, or ASP, say which one, and include it in the subject line.
    DON'T
    Don't post a series of questions in a single post. Splitting them into separate threads increases your chances of a quick answer.
    Don't repeat the same question in different forums, as this makes it harder for both you and those trying to help you to keep track of progress. Duplicate posts will be deleted.
    When someone has answered your question, don't start asking more questions in the same thread. Keeping threads separate with clear subject lines makes it easier for others who might have the same problem to find the information they need.
    Don't be impatient. If you don't get an answer in 24 hours, post a follow-up question in the same thread, asking if you need to give more details. The lack of replies might also indicate that no one else knows the answer.\
    Don't hijack existing topics by replying with unrelated questions or suggestions. Start a new discussion thread so your question stands out.
    When your question has been answered
    If you started the thread, buttons like those in the following screenshot will appear at the bottom of each reply. Use these buttons to indicate that you have been helped or that you have received a satisfactory answer. You can choose up to two answers as "helpful" and one as "correct". Once selected, you cannot change your mind. Marking answers like this helps others identify solutions to their own problems.
    Gramps

  • Spry Menu Text Alignment

    I'm wondering if there is any way to have the text centered
    in the main menu bar but align text left the in the submenus. I've
    tried, but any alignment I apply in the CSS seems to affect all
    text.

    I just happened to do this example page someone else:
    http://www.projectseven.com/testing/customers/adobe/fubar/
    Perhaps it will help. The spry menu is the second one.
    Al Sparber - PVII
    http://www.projectseven.com
    The Finest Dreamweaver Menus | Galleries | Widgets
    http://www.projectseven.com/go/pop
    The Ultimate DW Menu System
    "efredian" <[email protected]> wrote in
    message
    news:gnnq9i$3bu$[email protected]..
    > I'm wondering if there is any way to have the text
    centered in the main
    > menu bar but align text left the in the submenus. I've
    tried, but any
    > alignment I apply in the CSS seems to affect all text.

  • Safari bold text causing problem with Spry Menu Bar

    I have made a web site using a Spry Menu bar. It worked fine across all browsers, as far as I knew. I was just alerted by th esite owner that the menu bar had the last link out of position when viewed in Safari. I'm not sure when this started happening. I notice the text in Safari is more bold than firefox or IE. My guess is that's the problem. I searched on google for help and found this
    Add - text-shadow: 0 0 0 #000; to the css.
    I tried that but it doesn't seem to have any effect.
    the site is here:
    http://www.telluridegravityworks.com/
    Can anyone offer any advice on how I might fix this? Thanks!

    I'm not seeing the issue in Win 7/Safari (assume it's a Mac issue) but I do see it in Win 7/IE9.
    In the CSS file, http://www.telluridegravityworks.com/css/gravity-works-winter.css
    tweaking the width of the navbar container fixes it here
    #nav-menu {
    width: 455px; /* adjusted from 445px */
    padding: 0px;
    overflow: hidden;
    float: left;
    margin-left: 515px;

  • Spry Menu text cannot in one line?

    Hi all,
    Need your help!
    I always have this problem which is when i put the text on the spry menu, then the text like about bonvo / business division tab is on 2 lines in IE and firefox. But in safari, the text is layout so well in one line.
    Please refer to this link http://bonvo.com/corporate/index291009.html
    I try to change the width in css as in auto, 100% and inherit but no diffence and the best is i use 100%.
    Anyone know how to make it nicely fit one line whithout making the font size smaller?
    Thanks

    First off, I have not seen Spry Menu Bars implemented in quite the way you have done it. Typically, all my menu items are in one set of nested lists. No harm in your method, but it seems a little laborious!
    That said, I think the reason your menu items are stacking up on two lines is having to do with the padding. If you change the padding on the list items from 5px all around to 0 5px, zero top and bottom and 5px left and right, you will have given each of them just a little more elbow room and they should not break lines.
    Beth

  • Center the Spry Menu?

    How does one get the Spry menu to align center (relative to
    page size)? I'm doing a horizontal menu and it always stays
    left-justified. I can't seem to get it to stay center via CSS
    editing or anything like that. Any help? Thanks!

    Using CSS you need to place a container around the menu with
    the side margins set to auto.

  • Spry menu bar doesn't appear correctly in IE

    Hi guys..
    I created a spry menu bar in DW CS4. It looks fine in Firefox but in IE 8, the background image of the navigation bar appears white after allowing activecontrol to run. I didn't include any image for ul.MenuBarHorizontal a because I wanted to use the background image for the div containing the navigation bar.(Hope I didn't confuse you there).. I tried using the search box but couldn't find any solution to my problem. Here are my screen shots.
    This is in firefox.
    This is in IE 8 before allowing activex.
    This is in IE 8 after allowing activex. (Part of the navigation bar is white)
    Here's the code.Hope you can help me asap. Thanks!
    @charset "UTF-8";
    /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    LAYOUT INFORMATION: describes box model, positioning, z-order
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        cursor: default;
        width: auto;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
        z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        position: relative;
        text-align: center;
        cursor: pointer;
        width: 9em;
        float: left;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        z-index: 1020;
        cursor: default;
        width: 9em;
        position: absolute;
        left: -1000em;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
        left: auto;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
        width: 9em;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
        position: absolute;
        margin: -5% 0 0 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
        left: auto;
        top: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
        border: 1px solid #CCC;
        background-image: url(../images/single.jpg);
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
        display: block;
        cursor: pointer;
        color: #000;
        text-decoration: none;
        padding-top: 1.05em;
        padding-right: 0.75em;
        padding-bottom: 1.05em;
        padding-left: 0.75em;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-weight: bold;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
        color: #FFF;
        background-image: url(../images/single.jpg);
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
        color: #FFF;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
        background-repeat: no-repeat;
        background-position: 95% 50%;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
        background-repeat: no-repeat;
        background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
        background-image: url(../images/single.jpg);
        background-repeat: no-repeat;
        background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
        background-repeat: no-repeat;
        background-position: 95% 50%;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
        position: absolute;
        z-index: 1010;
        filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
        ul.MenuBarHorizontal li.MenuBarItemIE
            display: inline;
            f\loat: left;
            background: #FFF;

    /* HACK FOR IE: to stabilize appearance of menu items; the slash in
    float is to keep IE 5.0 from parsing */
    @media screen, projection
    ul.MenuBarHorizontal li.MenuBarItemIE
            display:
    inline;
            f\loat: left;
            background: #FFF;
    I hope this helps.
    Ben

  • Spry Menu Bar css not compatible with IE7? or compatibility View on IE8?

    Well i've made my website
    . Swimmerbuddy.com
    Problem:I used the spry menu bar on a div tag. I've got it working fine on several browser and so on.. but hmm. i noticed that IE7 and only on compatibility view of IE8 it does not work...
    It seems like the drop down menus get cover by the main content underneath it..
    I started of with dwt i made my self.This is the DWT and the css that controll the dwt and the spry menu bar.
    PLZ HELP ME.. THANKS
    THIS IS THE DWT THAT THE PAGE RUNS ON
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <link href="../CSS/main.css" rel="stylesheet" type="text/css" />
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <style type="text/css">
    a:link {
    color: #000;
    text-decoration: none;
    </style>
    <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    a:visited {
    color: #000;
    text-decoration: none;
    a:hover {
    text-decoration: none;
    color: #000;
    a:active {
    text-decoration: none;
    </style>
    </head>
    <body>
    <div id="wrapper">
      <div id="header">
        <div id="networkicons"><a href="http://www.facebook.com/?ref=logo#!/profile.php?id=100001554936595" target="_blank"><img src="../_images/facebook.png" alt="facebook.com" width="45" height="45" border="0" title="facebook.com"/></a><a href="http://www.myspace.com/swimmerbuddy" TARGET="_blank"> <img src="../_images/myspace.png" alt="myspace.com" width="44" height="45" border="0" title="myspace.com"/></a><a href="http://twitter.com/swimmerbuddy" TARGET="_blank"> <img src="../_images/twitter.png" alt="twitter.com" width="43" height="45" border="0" title="twitter.com"/></a><a href="http://www.youtube.com/swimmerbuddy1" TARGET="_blank"> <img src="../_images/youtube.png" alt="youtube.com" width="44" height="45" border="0" title="youtube.com"/></a></div>
        <div id="buyNow1">
          <p><a href="../order_now.html"><img src="../buynowbutton.png" alt="bt1" width="130" height="25" border="0" longdesc="Order Your Swimmer Buddy Today!!" /></a></p>
        </div>
      </div>
      <div id="mainNav">
        <ul id="mainNavcontent" class="MenuBarHorizontal">
          <li><a href="../index.htm">Home</a>        </li>
          <li><a href="../swimmer.html">Swimmer Buddy</a></li>
          <li><a href="../order_now.html">Order Now</a>        </li>
          <li><a href="#" class="MenuBarItemSubmenu">Gallery</a>
            <ul>
              <li><a href="../photo_gallery.html">Photos</a></li>
              <li><a href="../video_gallery.html">Videos</a></li>
            </ul>
          </li>
          <li><a href="#" class="MenuBarItemSubmenu">Zinger Products</a>
            <ul>
              <li><a href="http://www.winkyscoop.com/">Winky Scoop</a></li>
              <li><a href="http://www.1800succeed.com/">Hypmovation</a></li>
              <li><a href="http://www.1800succeed.org/">1800SUCCEED</a></li>
              <li><a href="http://www.zingerproducts.com">Zinger Store</a></li>
            </ul>
          </li>
          <li><a href="../about.html">About Us</a></li>
          <li><a href="../contact.html">Contact Us</a></li>
        </ul>
      </div>
      <!-- TemplateBeginEditable name="mainContent" -->
      <div id="pageInfo">
        <div id="info_page">
          <p class="regionID">Region ID</p>
          <hr class="breaklinePageInfo" />
          <p class="breadcrum">&gt; <a href="../index.htm">Breadcrum </a></p>
        </div>
        <div id="mainContent">
          <div id="content">
            <p>Main Content Goes her</p>
          </div>
        </div>
      </div>
      <!-- TemplateEndEditable -->
      <!-- TemplateBeginEditable name="buynow2" -->
       <div id="buyNow2"><a href="../order_now.html"><img src="../buynowbutton.png" width="130" height="25" /></a></div>
       <!-- TemplateEndEditable -->
      <div id="footer">
    <div id="footertext">
            <p class="footertextclass">Copyright © 2010 SwimmerBuddy.com. All rights reserved. SwimmerBuddy.com is part of <a href="http://www.zingerproducts.com" class="footertextclass">Zinger Products</a>. Designated Trademarks and brands are the property of their respective owners. This page was last modified Setember 28,2010. Swimmer Buddy - Pattent Pending 2010</p>
          </div>
        <div id="footerlinks">
            <p classs="footerlinkspacing"> <span class="footerlinkspacing"><a href="../Disclaimer.html">Disclaimer</a><a href="../terms.html"> Term of Service </a><a href="../contact.html">Contact Us</a></span>
    </div>
          </div>
    </div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("mainNavcontent", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    THIS IS THE MAIN.CSS
    @charset "utf-8";
    #networkicons {
    height: 50px;
    width: 200px;
    margin-top: 160px;
    margin-left: 15px;
    position: absolute;
    #wrapper {
    width: 933px;
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    text-align: left;
    position: relative;
    #mainNav {
    text-align: center;
    position: relative;
    margin-right: auto;
    margin-left: auto;
    width: 934px;
    padding-bottom: 15px;
    clear: both;
    overflow: visible;
    #navwrapper {
    width: 935px;
    margin-right: auto;
    margin-left: auto;
    #mainContent {
    width: 910px;
    padding-left: 10px;
    padding-right: 10px;
    position: relative;
    padding-bottom: 20px;
    padding-top: 20px;
    #content {
    width: 910px;
    position: relative;
    #wrapper #footer #footerlinks p .footerlinkspacing a {
    margin-right: 20px;
    #footer {
    width: 930px;
    background-color: #fff;
    position: relative;
    margin-top: 5px;
    text-align: center;
    color: #000;
    padding-bottom: 10px;
    margin-bottom: 15px;
    #header {
    width: 930px;
    height: 209px;
    background-image: url(../_images/header.jpg);
    background-repeat: no-repeat;
    #buyNow1 {
    height: 25px;
    width: 140px;
    float: right;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    text-align: center;
    background-repeat: no-repeat;
    color: #666;
    padding: 5px;
    position: absolute;
    top: 160px;
    right: 150px;
    .buyNow1 {
    color: #666;
    #wrapper #pageInfo #info_page .breadcrum {
    color: #003;
    #wrapper #pageInfo #info_page .breadcrum a {
    color: #003;
    html, body {
    margin: 0px;
    padding: 0px;
    #buyNow2 {
    height: 25px;
    width: 130px;
    float: right;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    text-align: center;
    padding: 5px;
    position: relative;
    #wrapper #buyNow2 a img {
    position: absolute;
    top: -30px;
    right: 50px;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    #pageInfo {
    width: 930px;
    background-image: url(../_images/pageinfobackground.jpg);
    background-repeat: repeat-x;
    background-color:#FFF;
    text-align: left;
    padding-bottom: 15px;
    margin-top: 18px;
    position: relative;
    overflow: visible;
    visibility: visible;
    #wrapper #mainNav #mainNavcontent {
    position: absolute;
    left: 0px;
    width: 930px;
    .regionID {
    font-size: 2em;
    font-weight: bold;
    color: #FFC;
    margin-top: 1em;
    margin-bottom: 0em;
    text-align: left;
    margin-left: 5px;
    .breaklinePageInfo {
    margin-top: 0.5em;
    color: #FAFEAB;
    .breadcrum {
    color: #003;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: underline;
    margin-top: -0.2em;
    margin-left: 15px;
    #breadcrum {
    font-weight: bold;
    color: #003;
    #footertext {
    width: 910px;
    font-size: 0.6em;
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 10px;
    #footerlinks {
    width: 930px;
    font-size: 0.7em;
    font-weight: bold;
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    color: #000;
    position: relative;
    margin-top: 10px;
    margin-bottom: 5px;
    .footertextclass {
    color: #000;
    .footerlinkspacing {
    margin-top: -0.5em;
    color: black;
    height: 10px;
    font-style: normal;
    line-height: normal;
    font-variant: normal;
    letter-spacing: normal;
    p {
    margin: 0px;
    padding: 0px;
    body {
    text-align: center;
    margin-top: 5px;
    background-color: #073e78;
    background-image: url(../_images/background.jpg);
    background-repeat: repeat-x;
    background-attachment: scroll;
    font-size: 100%;
    THIS IS THE dropdown menu.css
    @charset "UTF-8";
    /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    LAYOUT INFORMATION: describes box model, positioning, z-order
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    cursor: default;
    width: auto;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
    z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
    margin: 0px;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: static;
    text-align: center;
    cursor: pointer;
    width: 132.8px;
    float: left;
    overflow: visible;
    visibility: visible;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    z-index: 1020;
    cursor: default;
    width: 132.8px;
    position: absolute;
    left: -1000em;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
    left: auto;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
    width: 8.2em;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
    position: absolute;
    margin: -5% 0 0 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
    left: auto;
    top: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
    border: #333;
    color: #FFF;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
    display: block;
    cursor: pointer;
    background-color: #FFF;
    padding: 0.5em 0.75em;
    color: #333;
    text-decoration: none;
    background-image: url(../_images/bar-top.png);
    background-repeat: no-repeat;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
    color: #003;
    background-image: url(../_images/bar-Bottom.png);
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
    color: #003;
    background-image: url(../_images/bar-Bottom.png);
    background-position: bottom;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
    background-image: url(../_images/bar-topsub.png);
    background-repeat: no-repeat;
    background-position: right top;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
    background-image: url(SpryMenuBarRight.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
    background-image: url(../_images/bar-topsubhover.png);
    background-repeat: no-repeat;
    background-position: right bottom;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
    background-image: url(SpryMenuBarDownHover.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
    position: absolute;
    z-index: 1010;
    filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    ul.MenuBarHorizontal li.MenuBarItemIE
      display: inline;
      f\loat: left;
      background: #FFF;

    Thanks a lot for that tip. It does improve it by a whole lot.. i c what my mistake was.. however, something is still off
    .. The Drop down menu is not behaving well...
    As you may c by the picture, the drop down menu now moves to the right. and is not because of the object to its left, i've modified that. Zinger Products Drop Down Menu also does the same.

Maybe you are looking for

  • UI available while process is running

    Hi, I built a Winform application in vb.net using  .net  target 3.5, that has a process running when a button is clicked. While running, I have a hard time to move or click the a custom button to minimize the window. I tried adding "Application DoEve

  • Error in Oracle9iAS when registering Lotus Notes?-pls help.

    Hi.. I not sure whether to post my problem here, or in Portal forum... I got this error when registering Lotus Notes mail in Portal(We done all the step, but stuck in the Final Step). I know, maybe you will ask me to post it in PDK/Lotus Notes Forum,

  • Report font changes between test and production

    using developer 6i server on solaris 64 bit environment. we have vnc configured on both machines. when we migrate a report from the test machine to the production environment, the font specifications are different in the html output. what should we l

  • Where is Solaris 10 Companion Disk?

    Hi all! When I have just finished setting up Solaris 10 on my PC (x86 - Intel), I realized that the X-Windows is not a part within CDs. Anh I do not how to download them, exactly, I do not know about their address in Sun website. Would you like to gu

  • How to you get biro of off iPad smart cover?

    Hello I let a friend use my iPad and she managed to put biro onto the smart cover.  Dose any one know how to get it off or any helpfully information. I have tried. White spirit Cif cream Fairy liquid And none of them did more than fair it slitley. It