What is the method for setting the height of a CSS grid item and aligning a grid item to a specific side?

Recently, I've been working on my portfolio using a CSS grid to display cards as grid items. When viewed on mobile, the cards stack on top of each other, but on desktop, I have ensured that they are displayed next to each other.

Lately, I have encountered two issues:

  • The skills card has an unnecessary amount of space, matching the height of the other cards
  • The contact card is positioned at the bottom of the experiences card when ideally, it should be placed under the skills card to the right.

How can these problems be resolved?

In attempting to address the positioning issue with the contact card, I manually adjusted its placement. However, I am uncertain if this is the most effective solution.

*I also want to mention that the site is created using SASS *

// Attempting to adjust position of contact card
#contact {
  position: relative;
  left: 102%;
}

// Grid code (referenced in the provided image)
#sections {
  margin: 1em;
  display: grid;
  grid-template: auto;
  row-gap: 1em;
}

@media only screen and (min-width: 700px) {
  #sections {
    grid-template-columns: 1fr 1fr;
    column-gap: 1em;
    
  }
}

View the screenshot of the site 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

Activate the first element once the array has been resized

I've hit a roadblock here. There's this standard tab menu bar that gets its data from an external array. Initially, the full array is loaded, but during the process, it gets filtered. Once filtered, the active class should be applied to the first ...

Choose specific dates from the data pickers based on the membership tiers and level of importance

I am seeking assistance in implementing a date selection functionality with different priority levels assigned to customers. Below is an explanation of the criteria: Customers with level 1 can choose dates from today up to 5 days in the future Cust ...

What causes certain div content to be absent from ZoneTemplate within an ASP.NET web part?

Check out this snippet of code: <asp:WebPartZone ID="Zone1" runat="server" Width="100%" PartChromeType="None" Padding="0" PartStyle-CssClass="NoPadding" PartStyle-BackColor="Transparent" BackColor="Transparent" PartChromeStyle-BackColor ...

Incorporating multiple web services into a React JS project to populate a Material UI dropdown efficiently

I have some code that is calling a web service and I have a few questions. Firstly, what is the best way to call a second web service? Currently, I am calling one and displaying the data in a list. But if I need to call a second web service, should I also ...

Uninstall all packages that are no longer listed in the package.json file using Npm

Seeking guidance on how to uninstall packages from the node_modules directory that are no longer listed in package.json. These packages were removed by another developer and the package.json file has been updated on git. Any tips on how to accomplish this ...

Combining JavaScript JSON objects with corresponding parameters

I'm struggling to find a solution for merging two JSON objects. Despite searching for answers, I haven't found any that have been helpful. My goal is to compare two objects and if there's a match, add an attribute as a marker to the first ob ...

Error: The request was not successful in creating and populating a list of type Microsoft.AspNetCore.Http.IFormFileCollection

I am encountering a Bad request error when trying to upload a file, convert it into JSON, and pass it to my .NET Core WebAPI controller. Below is an error screenshot that I received along with logging the model. https://i.sstatic.net/grSf4.png Here is m ...

The HTML webpage is optimized for desktop and tablet viewing, but has difficulty displaying correctly on mobile phones

Just starting out with HTML and created a website using HTML and CSS that is now live. It looks good on desktop and tablet (iPad) but not so great on mobile devices. Tried different solutions, including viewport settings, to fix the issue with no success. ...

What is the process for encoding an image as a Base64 string within a file?

I need help with selecting multiple images and converting them into Base64 strings. I have already stored the images in an array, but now I am struggling to convert them. Here is my code: $("input[name=property_images]").change(function() { var name ...

Error: Django Rest Framework - Invalid request

I've been attempting to make an API call to a particular endpoint within my Django project from the frontend. The endpoint I am trying to access is located at /tst/. My goal is to fetch data from this endpoint and use it to populate my webpage. Desp ...

Closing a modal window with a backdrop click feature in a ReactJS environment

Can someone please assist me with an issue I'm having? I am trying to create a modal window that closes when clicking on the backdrop using ReactJS. However, the window is also closing when I click anywhere on the modal itself. Below is my code: impo ...

Is it necessary to create a Node endpoint for each item in the array?

My current tech stack includes ExpressJs, NodeJs, and AngularJs. Imagine I have an array containing various objects representing grocery store accounts and the amounts owed to them by the bank. [{ account: 1, amount: 2.33 }, { account: 2, amount: 5.99 ...

The absence of variable declaration in a 'for...of' loop is functional in .js files but does not work in

index.js let items = [{ item: 'apple' }, { item: 'banana' }, { item: 'orange' }]; for (item of items) { console.log(item); } Execute using node $ node index.js { item: 'apple' } { item: 'banana' } { ...

Traversing through objects in react.js

Hello there, I'm currently learning React and JavaScript but facing some challenges with a particular task. Let's dive into it! So, imagine I have an array like this: clients = ["Alex", "Jimmy"] and then I proceed to create another array using th ...

I am having trouble setting breakpoints in Google Chrome

For a while, I've been using Google Chrome to debug my JavaScript code without any issues. However, out of nowhere, I am no longer able to place breakpoints. When I click on the line number where I used to add breakpoints, nothing happens. Sometimes, ...

Stop the inheritance of CSS and JavaScript in ASCX files

Currently, I have an application that consists of only one aspx page called Default.aspx. This page dynamically loads .ascx controls as required, all of which utilize the same JS and CSS file. I am now considering implementing Bootstrap on specific control ...

The Ajax URL is failing to connect with the controller through IIS

I am facing an issue where the application gets stuck in the Home controller when running it on IIS. It doesn't progress to the next controller (Data controller) as specified in the URL. However, when I run it in debug mode, everything works fine. How ...

Looping through a jQuery script to add a class if a certain condition is met in another class

$(document).ready(function() { if ($("#grid .media-box").hasClass("brand1")) { $("#grid .media-box-content").addClass("brand01") }; } }); and in body looping div grid <div id="grid"> <?php foreach($data as $items) { ?> <div cl ...

Can the mui dialog actions button be activated using CTRL + S?

Is it feasible to enable my users to save content in a MuI dialog by pressing CTRL + S? ...

The removal of the div element doesn't seem to be functioning properly

I am struggling with adding and removing div elements using jQuery. While adding a div element is working fine, I am facing issues with removing a div element. Here is the implementation: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " ...