Skip navigation
vlad mateika
Currently Being Moderated

Can I add image spacers in between horizontal spry menu items?

Jun 14, 2012 7:30 AM

Tags: #cs5 #html #dreamweaver #spry #css #submenus #ajax #sprymenubar #spry_menu

I found a similar post on adding image spacers in a vertical spry menu: http://forums.adobe.com/message/3187009

 

That post did not help (I tried it), so, I want to know how to add image spacers between Horizontal spry menu bars. My image will be between 10x10 and 25x25 pixels. I cannot add a link to my site since it is not live, but here is a roughpicture of what I want (X stand for the image):

 

Home   X   Galleries   X   Exhibition News   X   etc...

 
Replies
  • Currently Being Moderated
    Jun 14, 2012 4:41 PM   in reply to vlad mateika

    There are a number of ways to achive this, depending on what you want. If you just want a spacer, add/modify

    ul.MenuBarHorizontal li {

        margin: 0 30px 0 0;

    }

    You could also place a background image to give it a more dramatic effect.

     

    We'll have to wait until you have uploaded the file before we can give you more personalised assistance. You will have to upload it sooer or later anyway.

     

    Gramps

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2012 7:35 PM   in reply to vlad mateika

    Vlad, I too am very interested in this challenge.  I would like to add small square dots (in an image the height of the menubar).  I'm hoping someone has a means to do this in Spry.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2012 8:22 PM   in reply to Rormeister

    You might try something like

    <!doctype html>

    <html>

    <head>

    <meta charset="utf-8">

    <title>Untitled Document</title>

    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet">

    <style>

    ul.MenuBarHorizontal li.spacer {

        width: 15px;

        padding: 0.5em;

        cursor: default;

    }

     

    </style>

    </head>

     

    <body>

    <ul id="MenuBar1" class="MenuBarHorizontal">

      <li><a href="#">Item 1</a></li>

      <li class="spacer"><img src="images/dot15x15.gif" width="15" height="15"></li>

      <li><a href="#">Item 2</a></li>

      <li class="spacer"><img src="images/dot15x15.gif" width="15" height="15"></li>

      <li><a href="#">Item 3</a></li>

      <li class="spacer"><img src="images/dot15x15.gif" width="15" height="15"></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>

    Gramps

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 23, 2012 7:11 PM   in reply to Ben Pleysier

    Hi Gramps...(i'm one too   )

    I'll definitely give that a try.  Right now, I'm about to tear what little hair I have left out at the roots.  What is it with IE (7 & 8) and not behaving nicely with Spry Menus?  Everything works perfectly in (pick your flavor) FF/Chrome/Safari/Dolphin(android)...But IE anything on Win XP is the pits. When I hover, each button image turns White, and eventually fades to either Normal or Hover. Grrrr.

     

    Based on your post count, you're an expert. I don't want to abuse you, so if there are other locales to learn the subtelties I'd be most grateful.

     

    Cheers!

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 23, 2012 8:16 PM   in reply to Rormeister

    As one grandfather to another, WE RULE THE WORLD...

     

    What is it we were talking about? Oh yes, your SpryMenuBar.

     

    The best way for me, or anyone for that matter, to help you is by starting a new topic wherein you supply a link to your site and a short description of your hair my problem your problem.

     

    As long as we can keep smiling 

    Gramps

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points