Solved

Hover Div CSS question

Posted on 2013-11-05
2
352 Views
Last Modified: 2013-11-05
On trulia.com when you are looking at a property results page and you hover over a div, then hidden divs inside the main div are made visible. I want to recreate this effect on my site (I'm using Twitter bootstrap 2.3).

Can this be done using only CSS? Please post example code to get me started.
Thanks!

http://www.trulia.com/for_sale/Seattle,WA/4p_beds/
0
Comment
Question by:Bang-O-Matic
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
mikeyd234 earned 500 total points
ID: 39626154
HTML
<div class="parent">
    <p>Hello, I'm a child...</p>
    <p class="hidden">..and so am I but I'm hidden.</p>
</div>

Open in new window


CSS
.hidden { display:none; }
.parent:hover .hidden { display:block; }

Open in new window


http://jsfiddle.net/553tk/ 

:)
0
 

Author Closing Comment

by:Bang-O-Matic
ID: 39626182
Exactly what I needed! Thanks!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
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 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…
Suggested Courses

630 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