Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

How to make menu img show only on parent


  #1  
Old Oct 4, 2012, 01:18 PM
mariusanhalt
 
21 posts · Nov 2010
I have been trying to add a little img infront of the menu items, and so far it is working with:

div#menu1 li {
padding: 0px 0px 0px 30px;
background:url(wp-content/themes/atahualpa/images/flower.gif) no-repeat;

Thing is just that the img shows on ALL items, and I would like it to only show on the parent items, and not on the sub items.

The url is http://www.enjoy-it.dk

what should I add/remove?

Thanks
Marius
  #2  
Old Oct 4, 2012, 01:52 PM
juggledad's Avatar
juggledad
 
23,729 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
use FireBug in Firefox and examine the elements - you will see some class names for teh parents. You can add that class name in the CSS to restrict it to those classes.

Remember though, css is cascading - what you apply to an element is applied to all it's children. If you don't want the children to have it you need to have css for the child that backs out the other css.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subpages making parent pages stretch - how to make parent pages fixed? rhenium3 Page & Category Menu Bars 10 Dec 14, 2010 09:24 AM
Make the parent menu item non-clickable, only sub-menus tim55057 Page & Category Menu Bars 2 Nov 17, 2010 10:25 AM
How to make the Pages display in sidebar, show only the Parent Main Pages Leoni Sidebars & Widgets 2 May 27, 2009 12:13 AM


All times are GMT -6. The time now is 03:40 AM.


Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.