Solved

Show content on hover

Posted on 2013-12-03
2
281 Views
Last Modified: 2013-12-03
If you go to the following jsfiddle link

http://bit.ly/1bdBqRt

What i am trying to accomplish is when you hover over the box the .content div area will show up.   But it isn't working
0
Comment
Question by:stargateatlantis
[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 18

Accepted Solution

by:
Steven Harris earned 250 total points
ID: 39693287
Try using:

<div class='issue'><img src="http://images.kmag.co.uk/assets/images/latestfeatures/2013/11/Modu120.jpg" />
    <div class='issueTools'>
        <div class='content' style='color:red'>Content</span>        
    </div>
</div>

.issue {
    position: relative;
    display: inline-block;
}
.issue .issueTools {
    position: absolute;
    bottom: 0;
    opacity: .75;
}
.issue .issueTools .content {
    display: none;
}
.issue:hover .issueTools .content {
    display: block;
}

Open in new window

0
 
LVL 53

Assisted Solution

by:COBOLdinosaur
COBOLdinosaur earned 250 total points
ID: 39693770
Without the transitions:

<div class='issue'><img src="http://images.kmag.co.uk/assets/images/latestfeatures/2013/11/Modu120.jpg" />
        <div class='content'>Content</div>        
</div>

.issue {
     position:relative;
     width:200px;
    height:259px;
    background:url('http://images.kmag.co.uk/assets/images/latestfeatures/2013/11/Modu120.jpg') 100%;
           }
.content {
     display:none;color:red;
     position: absolute;
    bottom: 0;
    opacity: .75;
    display:none;
               }
.issue:hover {
       opacity: .75;
         }
.issue:hover .content { 
       display:block;
       z-index:5;
               }

Open in new window

Once you have the basic effect you can add the transitions.

Cd&
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

728 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