Solved

Jquery UI menu fix the hover style

Posted on 2013-05-31
2
921 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

914 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now