Pictures failing to appear in css/jquery slider

I have a total of 12 divs that are configured to display a thumbnail along with some text dynamically retrieved from a database query. When displayed individually, they appear fine in a column format with a border around them showcasing the thumbnail and text.

However, my goal is to arrange these 'boxes' into a horizontal slider so that visitors can scroll through them if they find something interesting.

The issue I am encountering is that the thumbnails do not seem to display properly. While the div/box displays correctly alongside the text, the images themselves are not showing up.

I have verified that the img tag is correct, leading me to believe that I may need to incorporate a display or z-index property to one of the div containers. Unfortunately, I am currently stuck in a loop trying to troubleshoot this problem.

If you have any suggestions, please share! (I am utilizing easyslider 1.7)

Sample HTML Code:

<div id="samplesales">
<div id="samplecontent">
<div id="slider">
<ul>
<li><div class=sample>
      <img src='..path/to/photo'>
      Photo description text ...
    </div>
</li>
  ....
<li><div class=sample> another photo etc </div></li>
</ul>
</div></div></div>

CSS Styling:

#samplesales{margin:0 auto;position:relative;text-align:left;width:650px;}
#samplecontent{position:relative;}

#slider ul, #slider li,
#slider2 ul, #slider2 li{
    margin:0;
    padding:0;
    list-style:none;
}

#slider2{margin-top:1em;}

#slider li, #slider2 li{ 
    width:650px;
    height:220px;
    overflow:hidden; 
    margin:auto;
    display: block;
}

div.sample {
    display:block;
    border: solid 1px #0066CC;
    margin:6px; 
    padding: 15px 20px 15px 20px;
    font-size: 14px;
    font-family: courier;
    min-height: 170px;
    vertical-text-align:middle;
    float:left;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    box-shadow: 4px 4px 5px #ccc;
    -webkit-box-shadow: 4px 4px 5px #ccc;
    -moz-box-shadow: 4px 4px 5px #ccc;
}

Answer №1

If you change overflow:hidden to overflow:visible !important, I don't have much advice to offer at this moment since it may lead to overflowing issues.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Mastering the art of using transitions in conjunction with display properties

I'm trying to achieve a fade-in effect with the CSS property display:block. Here's my HTML code: <div>Fade</div> And here's my CSS code: div { display: none; transition: 2s; } div:hover { display: block; } Unfortunately, thi ...

I am interested in utilizing the image.onload method within the $.when function

I am trying to dynamically load images inside a loop with specific requirements. In the code below, I want the alert to fire only when an image is being loaded, and then another alert to fire only after the first alert has fired. Here is my code: for (i ...

C# MVC alert platform

Currently developing a C# MVC 4 app and aiming to integrate a notification system similar to Facebook's. I am considering implementing a table for each event to store notifications, then using AJAX calls every minute to fetch notifications for the cu ...

Using JavaScript to dynamically change the IDs of multiple select elements during runtime

I am facing an issue when trying to assign different IDs to multiple select elements at runtime. The number of select elements may vary, but I need each one to have a unique ID. Can anyone assist me in locating the select elements at runtime and assignin ...

Sending a document through an ajax request from a bootstrap dialogue box

Trying to send a file to a server through a bootstrap modal using ajax. Here's the modal html: <div class="modal-body"> <div> <form class="form" role="form" id="attachform" enctype="multipart/form-data"> <input type="file" name= ...

Assign a specific attribute to a checkbox, gather all selected attributes, and transmit them using jQuery

I have a system generated table with approximately 800 rows that needs checkboxes added for users to select specific rows for more information. I can add a checkbox column to the entire table at once, but I don't want to manually assign values to each ...

Prevent the reloading of the page by utilizing Ajax technology when submitting a form in Laravel

I'm facing a challenge with processing a form submit using ajax instead of Laravel to prevent page reloads. Unfortunately, it's not working as expected and I'm struggling to figure out the issue. Despite researching numerous examples online, ...

Using the power of jQuery to send a Rails form for processing

Currently, I am facing an issue with submitting a Rails form using jQuery and Ajax. Even though I have utilized remote: true for AJAX functionality, I need to incorporate additional jQuery actions upon button click along with providing feedback on the acti ...

Tips for designing a pre-selection process

I've been considering the idea of implementing a temporary screen that allows users to choose between different options before proceeding to a specific page. For instance, on the contact page, users would be prompted with a question like "Are you loo ...

The font sizes appear larger when styled with HTML compared to using Photoshop

When I view my <nav> element in Chrome, the font size of each list element appears much larger than it was originally designed in Photoshop. The font is displaying 23px wider in Chrome compared to Photoshop, even though my resolution is set at 72dpi ...

Refresh the HTML webpage using AJAX technology

I am trying to implement a simple html page with a single table that updates in the background every 5 seconds. The traditional solution of using <meta http-equiv="refresh" content="5"> is not suitable as it would disrupt the user experience by displ ...

javascript game for reversing an array

in case(po==true){ snake_array.reverse(); var i=0; var c=snake_array[i]; //drawing the head draw_head(c.x,c.y); for(i=1;i<snake_array.length;i++){ //drawing the body var c=snake_arr ...

Organizing subcategories within a dropdown checklist

I am currently working on a list that utilizes dropdownchecklist and I am looking to create subgroups from the elements in the list. The goal is that by clicking on a subgroup checkbox, it will automatically check all elements associated with it. Below is ...

The Jquery Object #<Object> does not have the 'getElement' method available

I've been attempting to set up this table, following the instructions here: Despite verifying that my browser is correctly pulling the CSS and .js files, I keep encountering an error related to my sortabletable.js file. (screenshot of the error) htt ...

Conceal/reveal div with initial partial visibility

http://jsfiddle.net/7RDBk/1/ At the moment, I am using slideUp and slideDown functions to hide and display a div. My goal is to have 25px of the div showing initially before expanding and going back to 25px when clicked. It seems like a simple task, but I ...

What could be causing issues with the JQuery .Resize() function?

I'm attempting to create a responsive layout where the content div adjusts itself when the user resizes the page. The top and bottom divs are static, so only the content div changes its size based on the page flow. $(window).resize(function() { v ...

Tips on maintaining the Parent menu in a hovered state when the mouse is over the child menu within a Dropdown Menu

I have been working on creating a dropdown menu that functions correctly. However, I am facing an issue where the top menu, when hovered, turns white, but as soon as I move down to the submenus, the top menu reverts back to its original color. Is there a ...

Switch Image on Hover in Panel Group

After delving into Bootstrap, I encountered an issue. I have a Panel-Group with an image and some text. The challenge is switching the image on hover, but it should change when hovering over the panel, not just the image itself. I've found solutio ...

Customizing Geonames JSON Ajax Request

Having found the code I needed from a sample website, I am now seeking help to customize it to only display results from the USA. This is the current code snippet: $(function() { function log( message ) { $( "<div>" ).text( message ).pr ...

Tips for obtaining the resource id while creating a new event in fullcalendar

When using the multiple resource view feature, I encounter an issue when creating events for specific resources. How can I access the ID and name of the selected resource within the select function? I am attempting to manually add a new event by selecting ...