What is preventing the card from appearing at the top?

Hey, the content of the card is not appearing at the top. It seems to be hiding behind the background and I want to bring it to the front. Please note that I am only using Bootstrap 4.

HTML

<section id="pricing" class="">
<h1 class="text-center text-uppercase my-5 py-5">services</h1>
<div class="container py-5 my-5">
<div class="row align-items-center justify-content-center">
<div class="col-10 m-auto col-md-3 bg-white py-5" id="card-pricing">
<h1 class="text-center text-uppercase">basic</h1>
<hr class="my-4">
<p class="lead text-center">
$ <span class="size-grt font-weight-bold ">20 </span>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Odio consectetur, provident molestiae a ad possimus ipsam harum delectus.
</p>
<hr class="my-4">
<div class="d-flex justify-content-center align-items-center">
<button class="btn purchase-btn text-uppercase">purchase</button></div>
</div>
<div class="col-10 m-auto col-md-3 bg-white pricing-middle py-5" >
<h1 class="text-center text-uppercase">basic</h1>
<hr class="my-4">
<p class="lead text-center">
$ <span class="size-grt font-weight-bold ">20 </span>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Odio consectetur, provident molestiae a ad possimus ipsam harum delectus.
</p>
<hr class="my-4">
<div class="d-flex justify-content-center align-items-center">
<button class="btn purchase-btn text-uppercase">purchase</button></div>
</div>
<div class="col-10 m-auto col-md-3 bg-white py-5" id="card-pricing">
<h1 class="text-center text-uppercase">basic</h1>
<hr class="my-4">
<hr class="my-4">
<div class="d-flex justify-content-center align-items-center">
<button class="btn purchase-btn text-uppercase">purchase</button></div>
</div>
</div>
</div>
</section>

SCSS file

#pricing{
  background: url('https://images.unsplash.com/photo-1585314062340-f1a5a7c9328d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1534&q=80') no-repeat;
  height: 100vh;
  width: auto;
  position: relative;
  z-index: -1;
  background-size: 100% 100%;
  clip-path: polygon(100% 0%,100% 75%,50% 100%,0% 75%,0% 0% );
}

Currently, the cards look like this https://ibb.co/GWVhGY6, but I haven't provided the styling for the cards yet.

Answer №1

Adjust the z-index from -1 to 999 in order to bring your card layer to the forefront.

#pricing{
  background: url('https://images.unsplash.com/photo-1585314062340-f1a5a7c9328d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1534&q=80') no-repeat;
  height: 100vh;
  width: auto;
  position: relative;
  z-index: 999;
  background-size: 100% 100%;
  clip-path: polygon(100% 0%,100% 75%,50% 100%,0% 75%,0% 0% );
}

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

When viewing HTML "Div" on smaller screens, the full height may not be displayed properly

My setup includes two monitors: one is 24" and the other is my laptop's 12.5" screen. I have a red box (div) in my web application that displays full height on the larger monitor, but only partially on the smaller one. I'm puzzled as to why it s ...

I developed a website and also created a mobile.html version, with the desire to seamlessly switch between the two based on screen

I have two files, home.html and mobilehome.html, and I am trying to switch between them when the screen width goes below a certain size. if (screen.width <= 600) { document.location = "HomeMobile.html"; } This approach works well in Respon ...

Removing classes from multiple cached selectors can be achieved by using the .removeClass

Currently working on enhancing some JavaScript/jQuery code by storing selectors in variables when they are used more than once to improve performance, for example: var element = $("#element"); element.hide(); However, I am facing difficulties while tryin ...

Center a span vertically inside a div as the text within the span grows to occupy the entire div

I am facing an issue with a table that has 25 td's. Each td contains specific elements as shown below: <td> <div> <span> text </span> </div> </td> Additionally, there is a script in place that adj ...

Fixing the issue of list styles not displaying properly when using CSS3 columns in Webkit can be achieved by

example here: http://jsfiddle.net/R7GUZ/3/ I'm struggling to make the list-style property work in webkit for a parent OL that is styled with -webkit-column-count: 2; -moz-column-count: 2; column-count: 2; Is there a way to format an ordered list ...

Create a stylish bottom border exclusively for the text that has been wrapped

My goal is to create an underline that perfectly fits the width of the text on the bottom row, without extending beyond it. The desired effect is shown in Figure 1. Figure 1 Here is the HTML I am currently using: <h2><span class="inline-block"& ...

Resolving the issue: "Unable to destructure the 'Title' property of 'fac' as it is undefined" in React JS

I'm facing an issue with react-bootstrap mapping in my component whereby I encounter the following error: Cannot destructure property 'Title' of 'fac' as it is undefined. It seems like there's an error when trying to de ...

Issue encountered while trying to upload a file via an HTML form

Hello, I have encountered an issue with my HTML form that has multiple fields, including one for uploading a file. Whenever I try to submit the form without attaching a file, I receive an error message stating, "There was an error uploading the file, pleas ...

Tracking the progress bar as files are being uploaded via AJAX using HTML5

Currently, I have a progress bar that increments based on the number of files and their sizes. I am looking to implement an overall progress bar to display while uploading files to the server using AJAX and HTML5. Each file is uploaded individually to th ...

Ways to integrate Bootstrap with Spring MVC for enhanced functionality

After creating Bootstrap HTML files in Bootstrap Studio, I structured them as shown in the following image: https://i.sstatic.net/NMAU5.png Next, I moved all these files to the WEB-INF/view folder in my Spring project and changed them to JSP format. I se ...

Ways to select the initial 10 rows, final 3 rows, and middle 2 rows using Javascript

As a newcomer to Javascript, I have a couple of questions: 1) How can I retrieve the first 10 rows, the last 3 rows, and the 2 rows in the center using the code var firstTable = $('#aaa table').eq(0); 2) Is there a way to create and assign new ...

jQuery allows you to disable all other checkboxes when a specific one is checked

Whenever the "No" option is selected from a group of radio buttons, a DIV containing 6 checkboxes (with different names/IDs) should be revealed. Likewise, if the "None" option is checked, the other checkboxes should be disabled (and enabled once "None" is ...

Is it possible to utilize JavaScript for rotating and cropping a collection of images before uploading them to the gallery?

Struggling to implement file reader and croppie for local image editing (zoom / rotate / crop) before uploading. Seemingly stuck due to a potential DOM issue with the modal, unable to troubleshoot! FileReader () issues // // //create elements for image, ...

What is the process for turning an image into a clickable link that submits its image ID to a PHP file?

Here is a snippet of my code: while($row = $result->fetch(PDO::FETCH_ASSOC)){ echo '<div class="container">'; $i=0; while($i<3){ echo '<div class="row">'; echo '<div class="col-sm-4 ...

"Enhance your website navigation with the Bootstrap BS3 navbar clc Dropdown-Submenu feature

Utilizing Bootstrap BS3 for the construction of my Django website. I created a dropdown-submenu that is operational on http://www.bootply.com/nZaxpxfiXz# https://i.sstatic.net/85uTq.png However, when implementing the same in my project, I encountered: h ...

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 ...

Navigating through an array of images using ng-repeat

I am attempting to iterate through the image array and have each image correspond to a separate li. Despite using the variable "image" as my identifier, I am encountering difficulties looping through the array. The line that I am trying to modify is as fol ...

Enhancing User Experience: Use of Multiple Select Radio Buttons in Conjunction with Jquery UI Tabs and Mals

Whenever I select one radio button, I want all other radio buttons in each form with the same value to also change. I've been having trouble getting this functionality to work, so I created a JSFiddle for you to review here. Any assistance would be g ...

Eliminate unnecessary transparency in React Material UI Tooltip / Popper by adjusting opacity restrictions

Looking to integrate the Tooltip component from the React Material UI Library into my project. The code snippet I am using is as follows: <WhiteOnDarkGreyTooltipWithControls disableTouchListener disableFocusListener title={ <Text selectable ...

Encountering an issue with Angular routing: Cross-origin requests are restricted to specific protocol schemes, such as HTTP

I encountered an error while working on angular routing. Below is my HTML code snippet: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <script src= ...