Solved

Jquery UI menu fix the hover style

Posted on 2013-05-31
2
957 Views
Last Modified: 2013-06-20
on this page i m using jquery UI menu control (http://jqueryui.com/menu/) and the stylesheet i.e  <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /> I have altered some styles locally like background color etc,  When I hover over the menu items only then i see the items which have sub items like product and news. How can we display the arrows on items which have sub menu or if the arrow color & background color is the same then how can I edit the arrow image?
0
Comment
Question by:mmalik15
2 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39210833
When you download the jquery ui file it has all the images etc in it. Plus you should not be linking to jquery's own css file.
0
 
LVL 11

Expert Comment

by:mcnute
ID: 39225448
Apply the arrow image only to menu items who have children by detecting the class.
And remove the arrow image from the general style of your .graphit accordion a. like so:

This CSS directives are in your graphite.css file.

.graphite .accordion a {
padding: 5px 5px 5px 25px;
background: #009b84 url(images/bg_black.png) repeat-x 0 -1px;
text-decoration: none;
display: block;
color: white;
position: relative;
left: 25px;
}

.graphit accordion a.dcjq-parent {
background: url(images/arrow_black_right.png) no-repeat 0 center;
}

Open in new window

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question