Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   How to make menu img show only on parent (http://forum.bytesforall.com/showthread.php?t=18565)

mariusanhalt Oct 4, 2012 01:18 PM

How to make menu img show only on parent
 
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

juggledad Oct 4, 2012 01:52 PM

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.


All times are GMT -6. The time now is 05:10 AM.

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