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 8745181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:57:53+00:00 2026-06-13T11:57:53+00:00

My slideshow’s working correctly in every aspect except the fact that it’s a total

  • 0

My slideshow’s working correctly in every aspect except the fact that it’s a total failure when it comes to adjusting to different screen sizes.

It works like it should on my big screen, but on my other one it doesn’t adapt and adds a horizontal scroller.

I added width 100% to it but as I’ve found out the right way to do this is by a javascript code that adjusts everything dynamically. The problem is, I’ve never had any prior experience doing this and don’t know where to begin. My page has jQuery loaded by the way.

This is the sample structure of slideshow:

<div class="featured-image">
<div style="overflow: hidden;height: 450px;"><img width="1950px" height="" alt="4" src="image.jpg"></div>
<!-- end .featured-price -->
</div>

I suppose a jQuery script to target ‘.featured-image img’ dynamically and add the width and height to it would be the way to do this. Is there any way better than that or a simpler script? Any help is appreciated.

  • 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-13T11:57:54+00:00Added an answer on June 13, 2026 at 11:57 am
    var screenWidth = $(document).width();
    $('.featured-image img').width(screenWidth);
    

    If you need it to adjust dynamically then you’ll need to capture the resize event:

    $(window).resize(function() {
      var screenWidth = $(document).width();
      $('.featured-image img').width(screenWidth);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a slideshow working perfectly on every browser except FF. I know the
I have this slideshow that I'm trying to simply move up, but I can't
I'm building a slideshow in jQuery that allows the user to see four images,
I have a slideshow built in flash that I want to mimic in jQuery.
I've implemented a slideshow using the Cycle plugin, which is working in all browsers
I have a slideshow playing that scrolls a div to reveal the next photo
I have this slideshow with a overlay that pops up on hover, you can
I've got a slideshow that allows users to annotate slides with a simple drawing
I have a jQuery slideshow code that works fine with the following HTML structure:
I have created a slideshow widget, using jQuery.UI widgets that works with window.setInterval. I

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.