The coverflow of Swiper is not displaying properly within a Div container

Just to clarify, I am not very experienced and do not know many best practices. I am learning as I go along with projects.

I am using Swiper for a game list slider, but when I place it inside another Div, it disappears completely. I can position and size it correctly outside the Div, but it becomes unresponsive and messy that way.

Below is the section, with the schedule on the left and the game slider on the right. It appears when outside the Games Div, but vanishes entirely when inside.

https://i.sstatic.net/P4CFY.jpg

        <!-- Start of schedule container -->
    <div id="info-wrapper">
        <section id="info">
            <div id="schedule" class="container">

                <div class="row">
                    <div class="col">
                        <h1 id="title"> Stream Schedule</h1>
                    </div>
                </div>

                <div class="row">
                    <div id="dates" class="col">
                        <h1> Mondays </h1></div>
                    <div class="col">
                        <p>9:00 - 10:00 PM </p>
                    </div>
                </div>

                <div class="row">
                    <div id="dates" class="col">
                        <h1> Tuesdays </h1></div>
                    <div class="col">
                        <p>9:00 - 10:00 PM </p>
                    </div>
                </div>

                <div class="row">
                    <div id="dates" class="col">
                        <h1> Wednesdays </h1></div>
                    <div class="col">
                        <p>9:00 - 10:00 PM </p>
                    </div>
                </div>

                <div class="row">
                    <div id="dates" class="col">
                        <h1> Thursdays </h1></div>
                    <div class="col">
                        <p>9:00 - 10:00 PM </p>
                    </div>
                </div>

                <div class="row">
                    <div id="dates" class="col">
                        <h1> Fridays </h1></div>
                    <div class="col">
                        <p>9:00 - 10:00 PM </p>
                    </div>
                </div>
            </div>

            <!-- Container for game list -->
            <div id="games" class="container">
              <h1 id="title"> What I've been playing </h1> 

            <div class="swiper-container">
                <div class="swiper-wrapper">
                    <div class="swiper-slide" style="background-image:url(assets/images/box-art/fortnite.png);"></div>
                    <div class="swiper-slide" style="background-image:url(assets/images/box-art/fortnite.png);"></div>
                    <div class="swiper-slide" style="background-image:url(assets/images/box-art/fortnite.png);"></div>
                    <div class="swiper-slide" style="background-image:url(assets/images/box-art/fortnite.png);"></div>
                    <div class="swiper-slide" style="background-image:url(assets/images/box-art/fortnite.png);"></div>
                    <div class="swiper-slide" style="background-image:url(assets/images/box-art/fortnite.png);"></div>

                </div>
                <!-- Add Pagination -->
                <div class="swiper-pagination"></div>
            </div>
    </div>

    </section>

Complete CSS for main stylesheet can be found here

[CSS CODE HERE]

Please let me know if I'm missing any information. Thank you for any assistance!

Answer №1

Apply CSS:

#games{
    width: 100%;
}

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

The child_process in Node is attempting to utilize /usr/bin/zsh, but unfortunately, it is unable to do so because

Recently, I've been encountering issues with several npm commands failing, accompanied by an error message that looks like this: npm ERR! code ELIFECYCLE npm ERR! syscall spawn /usr/bin/zsh npm ERR! file /usr/bin/zsh npm ERR! path /usr/bin/zsh npm ER ...

The essence of a character undergoes a complete transformation once it is presented in

There seems to be an issue with the character "т", ascii code: 209 130 When this particular character is put in italics, its appearance changes drastically... Check out the т character in italics (take a look at the source code - it's fascinating) ...

What is the best way to ensure that the content container's max-width for a split tier is the same as the width of a full-width tier?

My goal is to create a split tier on a webpage with a 60/40 layout. The size of this tier should be calculated based on the maximum width of the container above it. Using JavaScript and jQuery, I managed to derive the max-width value of the full-width-tier ...

Limiting the invocation of the listener method in f:ajax depending on the return value of onevent

I am looking to check if the Onevent javascript function returns true or false. My goal is to restrict the listener method call based on the return value of the Javascript function. However, the code snippet provided is causing a syntax error in Firebug. ...

Can we stub these types of functions in any manner?

One file named helperFunction.js contains the following code: module.exports = (arg1, arg2) => { \\function body } To use this function in another file named file.js, you can simply call it like this: let helperFunction = require(' ...

Unlock the power of viewing numerous inputs simultaneously

Seeking guidance on how to allow users to preview images before uploading them. Currently, my code successfully previews images for one input field, but I am facing challenges when trying to add multiple pairs of inputs and images. How can I implement mul ...

Adding a unique value to an array using JQuery when it does not already exist

In need of assistance with a function that is supposed to add values to an array if they do not already exist. var category_json = new Array(); $.ajax({ type: 'POST', url: "<?php ech ...

Mobile Safari is having troubles loading CSS

After a long time of using in-line CSS directly on the page, I finally decided to consolidate it all into one file for my own sanity. Initially, I attempted the standard <link rel="stylesheet" href="URL"> approach and it loaded successfully, alt ...

Breaking down nested arrays in typescript

After receiving a response from the service, the data included the following: "rows": [ [ "stravi/aa", "202001", "59", "51", "2558.98", "0.5358894453719162", "1.9204668112983725", "140", "2.346630 ...

Acquire information from a JSON formatted string

I am having trouble extracting the first name from the JSON data provided below. While I am able to display the entire string using JavaScript [ alert(data); ], I am struggling to isolate just the first names. Any assistance would be greatly appreciated! ...

Adjust the positioning of the content within each card inside the modal box

I require assistance in adjusting the CSS for different cards within the modal box. I would like all cards to have consistent column width for various content within them, creating a symmetrical appearance. Currently, the cards appear staggered. Also, plea ...

The 'target' property is not found on the specified 'string' type

I've encountered an issue while creating a search bar in Typescript. Despite my efforts, the input is not being recognized. It seems that whenever I use the term 'target' in my onChange method, it triggers an error stating: Property &ap ...

Basic contact form with modal feedback

Hey there, I'm looking for a way to have a regular contact form on my webpage and once it's submitted, display the PHP action in a pop-up modal that says "Thanks for contacting us" before allowing users to close it. I've worked with HTML con ...

"Exploring the process of accessing $_FILES data through ajax in a way that mirrors the format used in pure

I have a functional upload script but I need to modify the format of the $_FILES array. Here is my HTML code: <input id="upload_dialog" name="file[]" type="file" multiple> This is my Javascript code: <script> $('#upload_dialog&apos ...

Is there a way to update and save both dependencies and devDependencies with a single command in Npm?

Is there a way to update multiple npm dependencies and save them to their respective locations in the package.json file? This is what my package.json looks like: { "dependencies": { "gulp": "^3.0.0" }, "devDependencies": { "gulp-eslint" ...

Is Fullpage.js functioning only on local servers?

I have decided to create a personal website showcasing my portfolio using the fullpage.js library. Everything seems to be working fine during development, but once I upload the site to my github.io or another public domain via FTP, I encounter GET errors t ...

Error handling in AngularJS and Firebase Promises

I am currently following a tutorial on thinkster.io and encountering some issues. The tutorial uses a deprecated SimpleLogin, so I have made the necessary code changes. However, I keep running into an error that says: TypeError: Cannot read property &apo ...

The website functions well in responsive design mode on an iPad screen, but encounters issues when viewed on an actual

The website is functioning well in responsive design mode on an iPad screen, however it seems to be having some issues specifically on iPad devices. I have tested it on all other devices and it works perfectly fine, but for some reason not on iPads. Feel ...

The split function is creating redundant values

Please help me with this issue I am facing while trying to split a string using split(). It's causing duplicate values which is frustrating. Can someone please assist me? The string I need to split is a comma-separated response from a database, and h ...

Creating animations with an svg mask can be effective, however, it seems to only work properly

I have been experimenting with creating a transition effect using SVG masks and CSS. Initially, everything was working as intended, but after a few repetitions (usually 1 or 2, unpredictably), the transition effect would suddenly stop and become instantane ...