jQuery Super-sized Not Expanding Vertically

I am facing an issue with resizing a 1920x1200 background image using jQuery Supersized. Whenever I resize the browser, there is a gap that appears vertically instead of filling up to compensate for the width constraint.

I have checked and copied the settings from another user who has a similar 1920x1200 image that resizes perfectly. But for some reason, it's not working for me. What could be the missing piece in my setup?

Let's start by looking at the CSS code below where the height/width are set to 100%:

* {
    margin: 0;
    padding: 0;
}

#supersized a {
    background: none repeat scroll 0 0 #111;
    height: 100%;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -30;
}

#supersized a.activeslide {
    z-index: -10;
}

And here is the JS code snippet I am using:

<link media="screen" type="text/css" href="css/master.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js" type="text/javascript"></script>
<script src="js/supersized.core.3.2.1.min.js" type="text/javascript"></script>

<script type="text/javascript">

            jQuery(function($){

                $.supersized({

                        //Functionality
                    slideshow : 0,
                    autoplay : 1,
                    start_slide : 1,
                    random : 0,
                    slide_interval : 6000,
                    transition : 1,
                    transition_speed : 500,
                    new_window : 1,
                    pause_hover : 0,
                    keyboard_nav : 0,
                    performance : 1,
                    image_protect : 1,
                    image_path : 'img/',
                    min_width : 0,
                    min_height : 0,
                    vertical_center : 1,
                    horizontal_center : 1,
                    fit_portrait : 1,
                    fit_landscape : 0,
                    navigation : 0,
                    thumbnail_navigation : 0,
                    slide_counter : 0,
                    slide_captions : 0,

                    slides  :   [ {image : 'example.com/image.png', title : 'Test'} ]
                });
            });

        </script>

Answer â„–1

After our discussion and your latest question, I have created a fiddle that does not center the content. Check it out here: http://jsfiddle.net/manishie/35qc7yht/

To make adjustments, focus on the following code:

horizontal_center: 0, // left align background

I recommend checking my updated fiddle to understand how it should be done correctly. Remember to place all JavaScript in the appropriate section, exclude unnecessary html and body tags, include jQuery using the sidebar menu, and add external resources like the supersized library also accessible through the sidebar menu.

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

Is there a way I can turn off the dragging functionality in my situation?

Is there a method to disable the dragging functionality within a draggable element? $('#dragitem').draggable({ scroll : false, drag: function(event, ui){ //check if condition is met if(†...

Retrieving Data from all Rows in jQuery DataTables

Is there a way to copy all rows in jQuery DataTables into a JavaScript array by clicking the header checkbox? https://i.sstatic.net/57dTB.png I need to locate where jQuery DataTables store the HTML for the remaining page of rows so that I can manipulate ...

Can we add to the input field that is currently in focus?

Recently, I've been working on a bookmarklet project. My goal is to append an element to the currently focused input field. For instance, if a user clicks on a textarea and then activates my bookmarklet, I want to insert the text "Hello" into that sp ...

How can I create a unique visual effect on the background in frontend development using chipped design techniques?

Creating a static website utilizing React. Description I am looking to incorporate a visual effect into the website pages, similar to the one demonstrated below. visual effect The goal is to design a rectangular background with triangles cut out from it ...

Having trouble making .click() function work in jQuery

Struggling with translating my javascript code to jQuery for homework. The .click function is causing me some serious issues. Here's a snippet of the code I'm working on: (document).ready(function() { $("start_test").click (function() { ...

What could be causing my buttons to not line up properly?

My buttons are refusing to line up horizontally for some unknown reason. I can't figure out what the issue is. They are all set to display as inline-block elements. The first image shows a website with the correctly aligned buttons, while the second o ...

FancyBox Integration with JW Player

I'm currently working on integrating JW Player within Fancy Box. Although Fancy Box is opening correctly with the specified dimensions below, I am facing an issue where the video does not display (this is occurring on a server). Below is an example li ...

The jquery datepicker consistently returns the current date when using PHP $_POST

Just to let you know, I am using the latest version of Codeigniter and Jquery in my project. As a beginner in web programming, I appreciate your patience with me :D This is the view/html code I have: Tanggal Lahir : <input type="text" id="datepicker" ...

JQuery Multiple Selection

Can someone please explain how to execute a multi match in jQuery? For example, matching id = a + num + b + num or id = a + num + c + num (where num ranges from 1-99). Any assistance would be greatly appreciated. Thank you. if($(this).attr("id").match(/ ...

linking to a page that shows the user's chosen option from a dropdown menu

One of the challenges I encountered was creating a feature that allows users to share a specific selection from multiple dropdown lists on a page. Essentially, my goal was to enable users to send a link that would direct others to the same page with the ex ...

Executing a command efficiently in Javascript with the get method

The command that needs to be sent to the embedded device is in the form of a GET method. However, the value continuouspantiltmove: String(pt) is not being properly transmitted to the CGI script through Google Chrome, causing it to fail. Since I do not hav ...

jQuery - patience is required until all elements have completely faded away

I am facing a unique challenge: I need to trigger an action after two specific elements have been faded out simultaneously. The code snippet for this task is as follows: $("#publish-left, #publish-right, #print-run").fadeOut(function(){ //do something ...

Enhancing the building matrix with JavaScript (or jQuery)

I have created a custom Javascript function for extracting specific data from a matrix. The main purpose of the function is to retrieve data based on dates within a given range. Here's how it works: The matrix[0][i] stores date values I need to extr ...

spacing between elements vertically

             I am struggling with a common issue and despite searching, I have not been able to find a solution that works for me. Here is my setup: <div id="wrapper">   <div class="content-area-top"></div>   <div clas ...

Mastering CSS Sprites: A Guide to Aligning Sprite Buttons at the Bottom

In my web app, I have a bottom navigation bar with 9 buttons, each represented by a Sprite Image having 3 different states. The challenge I'm facing is aligning all the images at the bottom of the nav bar or div. The icons vary slightly in size, and ...

Misplacement of HTML head tags

Is it a grave error in this layout that H1 isn't the first rendered head element? Is there any way to correct this issue? Given that both columns have variable lengths, I am struggling to find a workaround. Reference I was requested to provide a ref ...

Using Selenium and Python to scrape text from a continuously refreshing webpage after each scroll

Currently, I am utilizing Selenium/python to automatically scroll down a social media platform and extract posts. At the moment, I am gathering all the text in one go after scrolling a set number of times (see code below), but my objective is to only gathe ...

Is it possible to consolidate three footer widget areas into just one for WordPress?

I'm currently using the Retailer theme for my WooCommerce shop, which has 3 footer widget placeholders set up in a grid layout. However, I want to consolidate these into just one widget that spans the width of the entire main container. I managed to ...

What is the best way to create a stylish vertical line separating two divs stacked vertically?

I am trying to connect two divs that are positioned vertically with a clean and elegant vertical line. Although I attempted using the pipe (|) font, it did not produce the desired result. Can anyone provide guidance on how to create a more aesthetically pl ...

Mastering the Art of Effortless Content Manipulation with Jquery's

Click here to access the example JSFiddle. I experimented with drag and drop functionality by successfully dragging the word "hello" into a specific div tag. Now, I am wondering how to extend this capability to multiple div tags. How can we achieve dropp ...