Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

add on hover color to a div with CSS

Posted on 2014-07-18
1
Medium Priority
?
207 Views
Last Modified: 2014-07-18
Hi experts,

I saw this example:

http://jsfiddle.net/jaSs8/1/

How do I add on hover to these gray divs?  

So when I hover over one of them I want the gray color to turn red?
0
Comment
Question by:maqskywalker
1 Comment
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 2000 total points
ID: 40205406
One way:

.item div:hover {
    background-color: #f00;
}
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

783 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