Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8724175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:46:26+00:00 2026-06-13T07:46:26+00:00

I have a div inside a list item with the display set to none.

  • 0

I have a div inside a list item with the display set to none. I want it to fade in when that list item is hovered over. I have been at this for about an hour trying various tutorials but I just can’t get it to work…

<li data-tags="Websites" class="boxgrid captionfull">
    <img src="resources/Portfolio/Thumbs/ChugBeersWebsite.jpg" width="200" />
    <div class="boxcaption">
        <h3>Chug Beers Site</h3>
        <p><a href="http://www.chugbeers.com">Visit Site</a></p>
    </div>
</li>


<script type="text/javascript">
    $(document).ready(function() {
    $(function(){
       $('.captionfull').hover(function(){  
            $(".boxcaption").fadeIn('slow');  
        }, function() {  
            $(".boxcaption").fadeOut('slow');  
        });  
    })
});  
</script>

I believe the following script is conflicting it somehow. I am using a filterable portfolio plugin, and I don’t know enough jquery to want to mess with it. Any help would be appreciated.

$(document).ready(function(){

var items = $('#stage li'),
    itemsByTags = {};

// Looping though all the li items:

items.each(function(i){
    var elem = $(this),
        tags = elem.data('tags').split(',');

    // Adding a data-id attribute. Required by the Quicksand plugin:
    elem.attr('data-id',i);

    $.each(tags,function(key,value){

        // Removing extra whitespace:
        value = $.trim(value);

        if(!(value in itemsByTags)){
            // Create an empty array to hold this item:
            itemsByTags[value] = [];
        }

        // Each item is added to one array per tag:
        itemsByTags[value].push(elem);
    });

});

// Creating the "Everything" option in the menu:
createList('Everything',items);

// Looping though the arrays in itemsByTags:
$.each(itemsByTags,function(k,v){
    createList(k,v);
});

$('#filter a').live('click',function(e){
    var link = $(this);

    link.addClass('active').siblings().removeClass('active');

    // Using the Quicksand plugin to animate the li items.
    // It uses data('list') defined by our createList function:

    $('#stage').quicksand(link.data('list').find('li'));
    e.preventDefault();
});

$('#filter a:first').click();

function createList(text,items){

    // This is a helper function that takes the
    // text of a menu button and array of li items

    // Creating an empty unordered list:
    var ul = $('<ul>',{'class':'hidden'});

    $.each(items,function(){
        // Creating a copy of each li item
        // and adding it to the list:

        $(this).clone().appendTo(ul);
    });

    ul.appendTo('#container');

    // Creating a menu item. The unordered list is added
    // as a data parameter (available via .data('list'):

    var a = $('<a>',{
        html: text,
        href:'#',
        data: {list:ul}
    }).appendTo('#filter');
}
});

#container{
display: block;
overflow: hidden;
width: 960px;
margin: 0;
padding: 0px;
}

#container li{
float: left;
height: 229px;
list-style: none outside none;
margin: 20px;
position: relative;
width: 200px;
-moz-box-shadow: 0 0 5px #000;
-webkit-box-shadow: 0 0 5px #000;
box-shadow: 0 0 5px #000;
border-radius: 7px;
overflow:hidden;
display:block;      
}
#container li img{
border-radius:7px;
position: absolute;  
}
#container ul{
margin: 0px;
padding: 0px;
}
#container ul.hidden{
display:none;
} 
.boxcaption{
text-align: center;
float: left;
position: absolute;
height: 100px;
width: 190px;
color: #FFF;
display: none;
bottom: 0;
border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px;
padding-right: 5px;
padding-left: 5px;
background-image: url(../resources/blackbg.png);
background-repeat: repeat;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T07:46:27+00:00Added an answer on June 13, 2026 at 7:46 am

    Like undefined mentioned, you might need to use the jQuery document ready handler. And since you’re already using jQuery, might as well use the fadeToggle method for less code.

    $(document).ready(function() {
      $('.captionfull').hover(function(){
        $(".boxcaption", this).fadeToggle('slow');
      });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a list of <p> inside a <div id=someDiv> I use this code
I have this div inside a repeater, where i set the class, onmouseover and
I have a div and I have a list inside the div. I want
I have a div with an unordered list inside that slides left when you
I basically have a fixed width DIV with an unordered list inside that overflows
I have an unordered list of items, I want to display each item as
I have 3 list-items with background-images that are contained inside a div that has
I have a list of div with each div having a image inside. The
I want to append a div inside a div which have many divs inside
I have a div[class=container] and inside is div[class=item] like: <style type=text/css> .container{ height:50vh; width:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.