Add picture to vertical menu items

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
Kaylen
Forum Members
Forum Members
Posts: 128
Joined: Mon May 01, 2006 5:24 pm

Add picture to vertical menu items

Post by Kaylen »

Hi,

I am using the template Ellnav-horiz/ver l 1 col and for the menu items in the left vertical navigation I want to add an image, but I don't know how to do that....
I also want the name of the parent page to be the topmenu item and also don't know how to do that...

see attachment

May thanks in advance for your help!! ;D

[attachment deleted by admin]
Kaylen
Forum Members
Forum Members
Posts: 128
Joined: Mon May 01, 2006 5:24 pm

Re: Add picture to vertical menu items

Post by Kaylen »

My menu now looks like what I have attached here, but I want it to look like the menu I posted earlier...

Can someone please help me?
Surely it must be possible to add an image before every menu item?

[attachment deleted by admin]
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Re: Add picture to vertical menu items

Post by Greg »

You can do this by adding something like the following to your Nav-Vertical stylesheet

Code: Select all

#menu_vert li {
list-style: none;
background: url(uploads/images/my.gif) no-repeat 0 50%;
padding-left: 30px;
}
Greg
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Add picture to vertical menu items

Post by Dr.CSS »

you can goto Menu Manager and make a new menu template....
just copy the one you are using now and put the img. in front...
one way to check where you need to put it is to go thru the menu and put, starting at the top in front of the tags,
numbers like 1 2 in front of the tags( not extra tags) then view your page and look at the source, they can be deleted later, i had 10 in a menu one time trying to figure something out, i put them in front and back of every tag in the menu  ;)....
mess around with it you can always go back to the original...
you will need to put the template='nameofyourtemplate.tpl' at the end in the template where you call out the menu...

    mark
Kaylen
Forum Members
Forum Members
Posts: 128
Joined: Mon May 01, 2006 5:24 pm

Re: Add picture to vertical menu items

Post by Kaylen »

greg, thnx for the info but I tried that already and then the picture appears behind the tekst (indeed a background picture then) but that is not what I want, I want the image to appear before the tekst....

Mark thnx I will try that and let you now if it works.....
Post Reply

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