How do I Add an image to separate each menu item?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
Johnnybucks
Forum Members
Forum Members
Posts: 10
Joined: Fri Jul 17, 2009 5:09 am

How do I Add an image to separate each menu item?

Post by Johnnybucks »

I want to make it so there is an image (a star) between each menu link. If I am using the "cssmenu_ulshadow.tpl" for my menu, how would I go about doing this?

Thanks in advance.
uniqu3

Re: How do I Add an image to separate each menu item?

Post by uniqu3 »

the easiest method would be to use css background property
Something like:

Code: Select all

#menuwrapper ul li a {
  background: url(path/to/your/star.gif) no-repeat left;
  padding-left: width-of star-image px;
}
elkman
Power Poster
Power Poster
Posts: 262
Joined: Thu Jan 11, 2007 9:16 pm

Re: How do I Add an image to separate each menu item?

Post by elkman »

What would you do to include the star on the left of each second level menu item using a horizontal menu with drop downs?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: How do I Add an image to separate each menu item?

Post by Dr.CSS »

#primary-nav li li {background image and padding to fit it in}...

#primary-nav li li a if using the image in the "a"...
elkman
Power Poster
Power Poster
Posts: 262
Joined: Thu Jan 11, 2007 9:16 pm

Re: How do I Add an image to separate each menu item?

Post by elkman »

Thanks, Dr.CSS
Post Reply

Return to “Layout and Design (CSS & HTML)”