Safari not properly adjusting height of bootstrap cards within column in row

I'm currently working on a bootstrap and angular project. I've noticed that in Safari, the card heights are not behaving as expected compared to other browsers like Firefox, Chrome, and Edge. I have tried setting the height to 100%, but it seems to only be an issue in Safari. Can anyone provide some guidance or assistance?

Code

parent:

home-page.html

<div class="position-relative padding-top-2rem card-container">
  <div class="container">
    <!-- title -->
    <h4 class="text-align-center boldLucas">
      {{'product-page.title.useTheMostInnovativeOSWithNetworkConnectivity' | translate}}
    </h4>
    <!-- cards -->
    <div class="row row-cols-sm-1 row-cols-md-2 row-cols-xl-{{cardElements.length}} g-3 py-5">
      <app-card-content *ngFor="let cardElement of cardElements" [cardElement]="cardElement"></app-card-content>
    </div>
  </div>
</div>

home-page.css

.card-container {
  background-color: #0A0D2F !important;
}

child:

card-component.html

<div class="col card-box-schaddow" id="card-box-schaddow-{{cardElement.icon}}">
  <a role="button" class="card btn" [href]="'#'+cardElement.id">
    <div class="card-body">
      <img class="row-box-icon"
           src="../../../assets/fonts/icons/{{cardElement.icon}}.svg"
           alt="Icon not found"/>
      <h4 class="bold card-title text-align-center">
        {{cardElement.title | translate}}<span class="bi-chevron-right bold"></span>
      </h4>
      <p class="card-text text-align-center py-2" [innerHtml]="cardElement.text | translate"></p>
    </div>
  </a>
</div>

card-component.css

/* classes */
.row-box-icon {
  width: auto;
  margin-bottom: 5%;
}

.card, .card:hover {
  height: 100% !important;
  border-radius: 9px;
  background-color: rgba(14, 44, 103, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.card-box-schaddow {
  border-radius: 50%;
}

.card-text {
  font-size: 1rem;
}

.card-title {
  padding-top: 1rem;
}

chrome, firefox, edge: enter image description here

safari: enter image description here

I tried:

.card, .card:hover {
  height: 100% !important;
  // ...
}
.card, .card:hover {
  min-height: 100% !important;
  // ...
}
.card, .card:hover {
  height: 100% !important;
  min-height: 100% !important;
  // ...
}

but so far, I have been unable to find a solution. Any suggestions would be greatly appreciated.

Answer №1

If you're looking for a solution, consider checking out this explanation on stackoverflow.

Chrome / Safari issue with not filling 100% height of flex parent

Answer №2

i have discovered the solution! it is

home-page.css

app-card-content {
  display: grid !important;
}

safari show image description here

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

Accessing the URL causes malfunctioning of the dynamic routing in Angular 2

I am currently working on implementing dynamic routing functionality in my Angular application. So far, I have successfully achieved the following functionalities: Addition of routing to an existing angular component based on user input Removal of routin ...

Loading SVG images in advance

I am in possession of around one hundred simple SVG images, distributed among five different image folders. These images are currently retrieved on demand when they need to be displayed, which generally works well but occasionally results in flickering tha ...

What is causing the turn.js demo to not function properly?

I tested the demo script on fiddle as recommended in the official docs. Upon downloading the script and trying to run it in my browser, I encountered a problem where it did not work, and no errors were displayed on the console. Curiously, when I ran the ...

The Void Ionic type does not have the specified property available

Struggling to load markers when the button is clicked to find nearby gyms. Despite loading the map to my location upon click, no markers are displayed and an error indicating that then does not exist on type 'void' within IonViewDidLoad. gyms.ht ...

Choosing Issues

My selectpicker is displaying data outside the dropdown menu before making a selection. The data appears both inside and outside of the dropdown. Can someone please help me identify the issue and guide me on how to fix it? <select class="selectpick ...

Display the first item last in an *ngFor loop in Nativescript Angular

I'm facing some confusion with the sorting of an array in JavaScript. Although the index, last, and first seem to be correct, the result is not as expected. Versions @angular/core: 4.1.0 nativescript-angular: 3.1.3 typescript: 2.4.0 Expected 1234 ...

mixture of fluid and static width list items

Here is my custom HTML code snippets: </div><!-- /end .topbar --> <ul class="nav"> <li class="first"><a href="#">Time added</a></li&g ...

Extracting the URL of the @font-face declaration in CSS with the use of JavaScript

Currently, my CSS file contains numerous @font-face tags. Each tag specifies a unique font-family and src URL. @font-face{ font-family: Garamond; src: url('ePrintFonts/pcl_91545.ttf'); } @font-face{ font-family: C ...

Troubleshooting TypeScript issues in an Angular 4 tutorial demo

I recently started working on the Angular tutorial provided on the official website. However, I have encountered an issue that I am struggling to resolve. After using Angular CLI to create the project, I came across the following code in app.component.ts: ...

How can I create a customized scrollbar for a div element in an Angular 2.0 CLI project?

I am attempting to create a sleek horizontal scroll bar within one of my div elements, similar to the example shown here: https://i.stack.imgur.com/ziWhi.png My project is based on the angular2 CLI. Progress so far: I came across this package angular2-s ...

Refine the search outcomes by specifying a group criteria

I have a scenario where I need to filter out service users from the search list if they are already part of a group in another table. There are two tables that come into play - 'group-user' which contains groupId and serviceUserId, and 'gro ...

Issue with ReactJS not applying classes based on conditions

I'm currently working on toggling a class on an element when a user clicks. However, I am facing an issue where my code only sets the class for a single element and does not refresh for subsequent clicks. Even though the set class is not being removed ...

Confirm the existence of duplicates within an Angular reactive form

I am working with a reactive form that looks like this: https://stackblitz.com/edit/angular-form-array-example After clicking the "add credentials" button 3 times, I have 3 sets of elements for username and password. In the first row, I enter the usernam ...

Discovering elements with multiple classes using watir-webdriver

In this scenario, let's consider an element like the one below: <div class="first_class second_class"></div> Now, we can locate it by its classes using the following methods: browser.div(class: 'first_class') browser.div(class ...

What is the best approach to effectively manage right-to-left text-input fields?

I have been working on a project involving a multilingual layout. One concern that has arisen is: What is the proper way to handle text-input in this scenario? To better explain my issue, I created a JSFiddle. If I simply add the attribute dir="rtl", ...

Angular 7 running slowly when refreshing or changing routes

Operating System: Ubuntu 16.04 Node Version: v10.15.1 NPM Version: 6.4.1 I have recently developed a web application with two pages using less and HTML without any AJAX calls. Below is the content of my package.json file: { "name": "frontend", "vers ...

Why isn't my Promise fulfilling its purpose?

Having trouble with promises, I believe I grasp the concept but it's not functioning as expected in my project. Here is a snippet of my code : (I am working with TypeScript using Angular 2 and Ionic 2) ngOnInit() { Promise.resolve(this.loadStatut ...

Disable Button's Shadow when it is in an active state (clicked)

Check out the DEMO to see the button animation CSS in action. The CSS code for the button animations is as follows: .btnliner { /* CSS properties */ } /* More CSS properties */ .btnliner:hover { /* Hover effects */ } Here is the corresponding J ...

Steps for storing API information in localStorage:1. Retrieve the API data

My app is running sluggish due to the excessive API calls for information retrieval. To optimize performance, I want to create a unified object containing all the data that can be shared across pages and accessed from localStorage, thus enhancing the app ...

Which files do I need to import to enable custom range thumbs in Bootstrap?

Despite importing the scss/_bootstrap.scss manifest file, I am experiencing issues with Bootstrap's custom form range thumb not working. It seems to only function properly when importing dist/bootstrap.css or using the CDN. Below is my manifest file ...