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)
-   -   Want child menu items to be different style from parent (http://forum.bytesforall.com/showthread.php?t=12214)

robinwiley Jan 13, 2011 11:22 AM

Want child menu items to be different style from parent
 
I'm trying to set up my wife's web site:
http://www.domni.com/TypeInsights2
I've successfully made the main menu items appear "tabbed" by rounding the upper corners. But when I hover over a parent menu item, the drop-down child items have the same rounded structure, which looks strange (as in the "Articles" menu item).
How can I make the child items appear with square corners?

Also, when I select the parent item, the menu item color does not change.

Any clues gratefully appreciated!

-Robin

juggledad Jan 13, 2011 03:09 PM

you will have to add CSS to override the styling you have set on the parent since it cascades to the children (Cascading Style Sheets)

robinwiley Jan 13, 2011 03:15 PM

Thanks, juggledad -- I figured it was something like that, and I've been experimenting. I added the following to my "CSS Inserts" section, but I suspect I'm missing something because it didn't work:

Quote:

div#menu1 ul.rMenu li ul.rMenu-ver li a {
-webkit-border-top-left-radius: 1px;
-webkit-border-top-right-radius: 1px;
-moz-border-radius-topleft: 1px;
-moz-border-radius-topright: 1px;
border-top-left-radius: 1px;
border-top-right-radius: 1px;
}
On a related note, is there a catalog of the various CSS IDs used within ATA anywhere?

Thanks,
Robin

juggledad Jan 13, 2011 05:54 PM

Just go view a page and then view the source (every browser has a way to do this) copy the entire page to a text document and you will see all the Atahualpa CSS showing all the classes and some of the ID's that are used.

robinwiley Jan 13, 2011 08:51 PM

OK, juggledad, so I took a look at the page source, and crafted what I thought might work, but still no luck. Here's what I did:

Quote:

div#menu1 ul.rMenu li.rMenu-expand ul.rMenu-ver li.menu-item a {
-webkit-border-top-left-radius: 1px !important;
-webkit-border-top-right-radius: 1px !important;
-moz-border-radius-topleft: 1px !important;
-moz-border-radius-topright: 1px !important;
border-top-left-radius: 1px !important;
border-top-right-radius: 1px !important;
}
Can you shed a little more light? ...and as an incentive, I donated to you... :-P

Thanks,
Robin

juggledad Jan 14, 2011 04:05 AM

attach a copy of your settings (ato-<export/import settings)

juggledad Jan 14, 2011 05:32 AM

try this
HTML Code:

div#menu1 ul.rMenu li.rMenu-expand ul.rMenu-ver,
div#menu1 ul.rMenu li.rMenu-expand ul.rMenu-ver li.menu-item,
div#menu1 ul.rMenu li.rMenu-expand ul.rMenu-ver li.menu-item a {
-webkit-border-top-left-radius: 1px !important;
-webkit-border-top-right-radius: 1px !important;
-moz-border-radius-topleft: 1px !important;
-moz-border-radius-topright: 1px !important;
border-top-left-radius: 1px !important;
border-top-right-radius: 1px !important;
}


robinwiley Jan 14, 2011 06:53 AM

Ah, that's perfect -- thank you! :)

-Robin

robinwiley Jan 14, 2011 07:00 AM

Oh, one last niggle -- when I click on any of the tabs that have no children, the background color changes to white, which is what I would expect. But when I click on the "Articles" tab (which does have children), its color remains blue.

http://www.domni.com/TypeInsights2

Over to you...

-Robin


All times are GMT -6. The time now is 02:17 PM.

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