Tips for expanding full screen slider dimensions

I am currently working on a website project using ASP.NET MVC Core 1.1.2. I want to create a full-screen slider for the homepage that appears stretched both on desktop and mobile browsers. However, when I view the slider on my browser, there is an annoying gap underneath it as shown below in this example: ():

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

Here is the section of code related to the slider:

<div class="fullscreenbanner-container">
                <div class="fullscreenbanner">
                    <ul>
                        <li data-transition="parallaxvertical" data-slotamount="5" data-masterspeed="1000" data-title="Slide 1">
                            <img src="~/img/index/slider/slider05.jpg" alt="slidebg1" data-bgfit="contain" data-bgposition="top left" data-bgrepeat="no-repeat">
                            <div class="slider-caption container">
                                <div class="tp-caption rs-caption-1 sft start"
                                     data-hoffset="0"
                                     data-y="270"
                                     data-speed="800"
                                     data-start="1000"
                                     data-easing="Back.easeInOut"
                                     data-endspeed="300">
                                    AMSTERDAM
                                    <span></span>
                                </div>

Answer №1

experiment with switching data-bgfit="contain" to data-bgfit="cover".

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

What is the process for including the Authorization HTTP header in a JSONP request?

I am attempting to make a GET request to the Yelp API. When I use the code below, I encounter a 401 error. From my research, it seems that setting the authorization in this manner is not possible when requesting JSONP data. However, when I attempt another ...

Is there a way to improve the efficiency of this JavaScript code?

I'm looking to optimize the code below in order to replace each link's href querystring with the current page URL's querystring if the current page URL has an argument 'myid1' or 'myid2' in the querystring. I want this sc ...

What is the best method to activate or deactivate a link with jQuery?

Can you provide guidance on how to toggle the activation of an anchor element using jQuery? ...

ProgressMeterJS Plugin - Full-width Progress Bar

I have encountered a question regarding this particular plugin found at: My goal is to adjust the progress bar's width to 100% so it matches the width of its container. So far, I have made modifications to the plugin by changing the following line: ...

Customized WordPress gallery options - selective presentation

By integrating print_media_templates into WordPress gallery creator, I have enhanced the functionality to select different shortcode outputs (default gallery, masonry, slider) based on additional parameters within the shortcode. Here is a snippet of my co ...

Encountering a 404 error in Flask when using a '?' in a redirect

After configuring a payment service on my Flask web app, I encountered an issue where the successful payment processing redirected me to a specific URL. However, upon reaching the URL, I received an error code 404. Strangely, when I removed the "?" from th ...

Is there a way to set an absolute placement for <tr> tags within a <table> using Html and Css?

Struggling to position the rows in my table vertically for CSS animations. I'm having difficulty ensuring the correct width for the rows. Here's what I have so far: <!DOCTYPE html> <html> <head> <style> table { ...

What is the proper way to structure the SQL value "[a,b,c]"?

In a video game, there are three distinct teams - team A, team B, and team C. The playtime data in the game's database is recorded as "[A,B,C]," with each letter representing the number of minutes played by the user on that specific team. When I used ...

There seems to be an issue with Angular 8's *ngIf not correctly updating the UI in the navigation bar

I am currently working on integrating bootstrap@4 with an Angular 8 application to ensure full responsiveness. In the navigation bar, certain elements such as the logout button or link should be hidden if the user is not registered or logged in, and vice ...

Manipulate text within a text area using jQuery

Good afternoon. How can I use JavaScript to update the text in a textarea input? I currently have some content in my textarea that includes a PublisherImprintName tag, and I want to remove it using jQuery. <PublisherInfo> <PublisherName>A ...

The Ajax login feature fails to authenticate the user even when the correct login credentials are provided

Greetings! I am completely new to the world of Ajax. I have created a login form using Ajax, but unfortunately, every time I attempt to log in, I receive an error message stating that the login was unsuccessful. I have been searching for hours to pinpoint ...

Stuck with the same icon even after a successful AJAX call

I am currently working on implementing a 'add to my list' function in my web app. The goal is to change the color of an icon when a user clicks on it, after sending the necessary data to the server. Despite successfully sending the data to the s ...

Tips for displaying Facebook comments with JavaScript

Can anyone help me figure out how to customize the data-href for Facebook comments using JavaScript (jQuery)? I tried incorporating the code below, but it's not displaying anything in the div col2. $("#col2").html( id+"<div class='fb-comm ...

Deleting a row from a table using TypeScript in Angular

I am currently working on a task management application and I am facing an issue with deleting a row when clicking the delete button. Below is the table structure in my HTML: <table *ngFor="let todo of todos; let i = index;" class="todo ...

Eliminate Redundancy with Knockout.js Copy Prevention

When I combine both ko.js files, one of them ends up being overshadowed by the other. Specifically, the second one stops working while only the first one remains functional. How can I merge these files together to ensure they work properly without any conf ...

Adjust the position of the xAxis on the Highcharts chart to move it downward or

I recently inherited some code from the previous developer that uses highcharts.js (v3.0.1). I'm having trouble with the xAxis appearing within the graph itself (see screenshot). Despite my efforts to recreate this issue in jsfiddle, I can't seem ...

Guide on Implementing Right-to-Left (RTL) Support in Material UI React

Currently, I am in the process of developing an application designed for LTR usage, but I am interested in adding RTL support as well. The application itself is built on top of Material UI React. By using CSS Flex Box, I have managed to rotate the applicat ...

Ways to refine date results using JavaScript

Here is the JavaScript code I have: $(".datepicker").datepicker(); $(".datepicker-to").datepicker({ changeMonth: true, changeYear: true, maxDate: "0D" }); This code ensures that the date selected cannot be beyond the cur ...

I am having an issue with jQuery's remove() function where it does not remove an element on the first attempt, even though the element

I am encountering an issue with an ajax call where the content is loaded into a specific div with async set to false. Within this content, there is a button with the id 'cancelbtn'. The problem arises when I try to remove this button using $(&apo ...

The Javascript function fails to trigger during the OnKeyPress and OnKeyDown events

I have encountered an issue while trying to call a function called validateQty on both the onkeypress and onkeydown events of a text input field. When I was passing only one parameter, which is the event itself, everything was working perfectly fine. Howev ...