HighDots Forums  

Spry Menu Background Images?? Help?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Spry Menu Background Images?? Help? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JesseBurton
 
Posts: n/a

Default Spry Menu Background Images?? Help? - 03-05-2008 , 03:32 PM






I am trying to create a template with a horizontal spry menu bar, and I don't
enjoy the standard box shape, so I figured I would use a background image to
display a gradient rounded rectangle in the CSS for the outermost container
(ul.MenuBarHorizontal) and then a regular gradient rectangle (either with or
without an aarow depending on the existence of sub-menus or not) in the CSS li
(ul.MenuBarHorizontal li) but to my chagrin I can't get the rounded rectangle
to show up. Anyone have any suggestions?


Reply With Quote
  #2  
Old   
MikeL7
 
Posts: n/a

Default Re: Spry Menu Background Images?? Help? - 03-05-2008 , 11:30 PM






put the link to the image in this part of the css file for the menu i have made
menus with gradient images, and they work good

/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarVertical a
{
display: block;
cursor: pointer;
background-image:url(../pictures/buttons.jpg);
background-repeat:repeat-x;
padding: 0.4em 0.7em;
color: #eee9e9;
text-decoration: none;
}

Also in this section of the css

/* 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.MenuBarVertical a.MenuBarItemSubmenu
{

background-image:url(../pictures/buttons.jpg);
background-repeat:repeat-x;
background-position: 95% 50%;
}


Reply With Quote
  #3  
Old   
MikeL7
 
Posts: n/a

Default Re: Spry Menu Background Images?? Help? - 03-05-2008 , 11:30 PM



put the link to the image in this part of the css file for the menu i have made
menus with gradient images, and they work good

/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarVertical a
{
display: block;
cursor: pointer;
background-image:url(../pictures/buttons.jpg);
background-repeat:repeat-x;
padding: 0.4em 0.7em;
color: #eee9e9;
text-decoration: none;
}

Also in this section of the css

/* 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.MenuBarVertical a.MenuBarItemSubmenu
{

background-image:url(../pictures/buttons.jpg);
background-repeat:repeat-x;
background-position: 95% 50%;
}


Reply With Quote
  #4  
Old   
JesseBurton
 
Posts: n/a

Default Re: Spry Menu Background Images?? Help? - 03-06-2008 , 08:48 AM



Thanks for the input Mike, I was able to do that, but it still is just blocks,
not rounded (Except that on the sub-menus the image doesn't scale to fit the
button, as some of the sub-menu items have text on two lines and some are
shorter than their parent and so those areas get all jacked up with the image
repeating but I don't quite understand how). What I am trying to do is to have
the entire main menu look like one rounded rectangle, so with placing the image
in those portions of the CSS I can either have each individual block be it's
own rounded rectangle (which I don't want) or have it stay as a regular
rectangle (which I also don't want). But that still leaves me with the issues
with the sub-menus and the image only extending as far as the actual text on
the sub-menu. It's a hott mess.


Reply With Quote
  #5  
Old   
JesseBurton
 
Posts: n/a

Default Re: Spry Menu Background Images?? Help? - 03-06-2008 , 08:48 AM



Thanks for the input Mike, I was able to do that, but it still is just blocks,
not rounded (Except that on the sub-menus the image doesn't scale to fit the
button, as some of the sub-menu items have text on two lines and some are
shorter than their parent and so those areas get all jacked up with the image
repeating but I don't quite understand how). What I am trying to do is to have
the entire main menu look like one rounded rectangle, so with placing the image
in those portions of the CSS I can either have each individual block be it's
own rounded rectangle (which I don't want) or have it stay as a regular
rectangle (which I also don't want). But that still leaves me with the issues
with the sub-menus and the image only extending as far as the actual text on
the sub-menu. It's a hott mess.


Reply With Quote
  #6  
Old   
JesseBurton
 
Posts: n/a

Default Re: Spry Menu Background Images?? Help? - 03-06-2008 , 09:16 AM



So I've got the sub-menus to not have the crazy repeating images (I had
apparently left the image in another place in the CSS too) but the image still
only goes as far as the text in the sub-menu and then it is just gray. I would
like the image to extend as far as the box that the sub-menus are in. Also I
still have the issues with some of the sub-menu items being on multiple lines
and the image simply being centered vertically. (Is there a way to get the
image to scale) I also couldn't get the image to repeat for the sub-menus.


Reply With Quote
  #7  
Old   
JesseBurton
 
Posts: n/a

Default Re: Spry Menu Background Images?? Help? - 03-06-2008 , 09:16 AM



So I've got the sub-menus to not have the crazy repeating images (I had
apparently left the image in another place in the CSS too) but the image still
only goes as far as the text in the sub-menu and then it is just gray. I would
like the image to extend as far as the box that the sub-menus are in. Also I
still have the issues with some of the sub-menu items being on multiple lines
and the image simply being centered vertically. (Is there a way to get the
image to scale) I also couldn't get the image to repeat for the sub-menus.


Reply With Quote
  #8  
Old   
JesseBurton
 
Posts: n/a

Default Re: Spry Menu Background Images?? Help? - 03-06-2008 , 04:23 PM



So how I ended up fixing this problem was I created new classes for the different menus and was able to assign different background images to the new classes.

Reply With Quote
  #9  
Old   
JesseBurton
 
Posts: n/a

Default Re: Spry Menu Background Images?? Help? - 03-06-2008 , 04:23 PM



So how I ended up fixing this problem was I created new classes for the different menus and was able to assign different background images to the new classes.

Reply With Quote
  #10  
Old   
paperface22
 
Posts: n/a

Default Re: Spry Menu Background Images?? Help? - 06-28-2008 , 11:58 AM



Hi Jesse,

Do you have url I can go to and see your menu with?

Thanks,Jeff

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.