Tips for creating a straightforward design using the Vuetify Grid system

Seeking assistance with creating a simple layout utilizing the Vuetify grid system. The goal is to have a row that fills up the minimum space and another row that takes up 100% of the remaining space.

Current Layout: https://i.sstatic.net/DyDeJ.png Desired Layout: https://i.sstatic.net/boX0E.png

Any guidance on achieving this layout would be greatly appreciated.

<div id="app">
  <v-app id="inspire">
  <v-container class="pa-0" fluid style="background-color: purple;">
    <v-row style="background-color: yellow;">
      <v-col cols=6 style="background-color: blue;">
        <v-card style="background-color: red;">small A</v-card>
      </v-col>
      <v-col cols=6>
        <v-card style="background-color: red;">small B</v-card>
      </v-col>
    </v-row>
    <v-row style="background-color: yellow;">
      <v-col cols=12 style="background-color: green;">
        <v-card style="background-color: red;">big</v-card>
      </v-col>
    </v-row>
  </v-container>
  </v-app>
</div>

Codepen Link: https://codepen.io/caeycae/pen/YzWyRrW

Answer №1

<div id="app">
  <v-app id="inspire">
      <v-container class="pa-0 fill-height" fluid style="background-color: purple;">
        <v-row style="background-color: yellow;">
          <v-col cols=6 style="background-color: blue;">
            <v-card style="background-color: red;">small A</v-card>
          </v-col>
          <v-col cols=6>
            <v-card style="background-color: red;">small B</v-card>
          </v-col>
        </v-row>
        <v-row style="background-color: yellow;" class="fill-height">
          <v-col cols=12 style="background-color: green;">
            <v-card style="background-color: red;" class="fill-height">big</v-card>
          </v-col>
        </v-row>
      </v-container>
  </v-app>
</div>

Incorporate the 'fill-height' class into:

  • the premiere v-container
  • the conclusive v-row alongside its contained v-card

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

Hide the entire TR if Mysql equals zero

How can I apply the style "display: none;" to an entire TR if the result from row credits is 0? Should I achieve this using CSS or a MySQL query? <?php $username = "root"; $password = ""; $database = "aaa"; $mysqli = ne ...

Unable to automatically close Vue-strap after a set time period

I've implemented the Vue-strap alert component in my Vue.js project and it's working well. However, I'm facing an issue with automatically closing the alert box after a specified duration. Below is the code snippet of the component I am curr ...

Steps to create spaces between the bootstrap cards

Just diving into Bootstrap and attempting to incorporate images as cards, I encountered a challenge where the cards were piling up one after another without any spaces between them. Below is the code snippet utilizing Bootstrap4: <body> <div class ...

Cease the process of filtering the array when the condition is not fulfilled at the upcoming index, even if there are still remaining elements that could meet the criteria at that

I am curious about extracting data from filtered results where the filter process automatically halts if the conditions are not met in the following index during filtering. Below is an example of the code I created: let array = [1, 2, 3, 4, 5, 100, 12, 13, ...

encountering problems with Next.js routing resulting in 404 errors

I developed a Next Js 14 app where I had to change the routing names inside the pages before going live. For example, instead of 'Charts', I changed it to 'charts' and made similar modifications to other pages as well. However, after de ...

Compiling this HTML template in dev mode with Vue is agonizingly slow

I've been working with a template app setup that was bootstrapped using vue CLI. Within one of my components, I have 20 nested div tags. During development mode, it's taking roughly 10 seconds to compile this component. The more deeply I nest HTM ...

Determining the condition of the menu: understanding whether it is open or closed

I'm diving into the world of jQuery and JavaScript, trying to grasp the ins and outs of the mmenu API. Despite my efforts to understand the libraries, the JavaScript code remains a mystery to me. Following the tutorial provided on , I successfully cr ...

There are mistakes in the code that I am struggling to fix

I am encountering an issue where my website only functions properly on Firefox and not on Chrome. However, when I run the HTML using NetBeans on Chrome, the website works fine. I'm unsure of what to do as I need to submit this project within the next ...

What is the process for integrating a gltf model into Aframe & AR.js with an alpha channel?

--Latest Update-- I've included this code and it appears to have made a difference. The glass is now clear, but still quite dark. Note: I'm new to WebAR (and coding in general).... but I've spent days researching online to solve this issue. ...

Exploring JavaScript Object-Oriented Programming (OOP) concepts. Delving into the

Here is a sample of JavaScript OOP that I am currently studying. I'm puzzled about why getA() and getC() are returning undefined, but getB() returns 2 when I update the variable B in the constructor and assign it to b. When I execute getD(), it appea ...

Sorting a VueJS table excluding certain rows is a breeze

Here is a sample code snippet for a v-table with sortable implementation: <script> export default { data() { return { sortBy: 'age', sortDesc: false, fields: [ { key: 'last_name', sort ...

What could be the issue with my dropdown navigation bar?

Currently in the process of learning CSS and HTML, I wanted to create a basic dropdown menu using CSS exclusively. However, there are some aspects that are unclear to me, so I would appreciate any assistance in figuring out what is happening. Here is how ...

CSS Mastery: vertically and horizontally aligning an absolutely positioned element with dynamic width based on children dimensions

Hey there! I've encountered a little issue with this code snippet: https://jsfiddle.net/jmg63s3e/1/ The code works perfectly when you resize the browser window to align the text with the image, which is exactly what I want. However, as soon as you co ...

Tips for sending a message to multiple servers

As a Discord.js developer, I am facing an issue with sending a message to all guilds/servers that my bot is in. Previous solutions provided were for outdated versions and do not work anymore. Can anyone offer assistance? The following code snippet does n ...

Eliminating and restoring the background in a form field when it is in focus

/* This function clears the default text in a field when clicked on */ $('#edit-field-activity-notes-und-0-value') .each(function() { $(this).data('default', this.value); var mybackground = $(this).css('backgroun ...

The jQuery request for the file was unsuccessful

Currently attempting to use jQuery.get('similar_products_stack.php'); as well as jQuery.get('./similar_products_stack.php'); My similar_products_stack.php file is designed to return an html array, however I keep receiving a 404 erro ...

JQuery immediately triggers the firing of $.when

I've been attempting to group together AJAX requests in order to trigger an event once all of them have finished: this.xhrs.push($.ajax({ type: "POST", url: this.options.firstUrl, data: this.options.data, datatype: 'json' })); this.xhrs.pus ...

displaying a div as a pop-up within an ASP.NET MVC 4 web application

One aspect of my asp.net MVC 4 application involves a partial view structured like so: <form class="qty-add" action="#" method="POST"> <label>Qty:</label> <div class="inp-controller"> <a href="#" c ...

Keypress-triggered function for reading lines in Word - Word Addin

I am currently working on developing an addin for Microsoft Word that can read the entire line of text in a Word document and compare it to a dictionary on each keypress event. The goal is to capture the text input by the user, save it to a variable, and s ...

I'm having trouble locating the subgenerator for the Yo generator. During an NPM installation, it appears that not all of the code is being downloaded

I am in the process of developing a Yo generator for creating hapijs modules. I have already published it to NPM, but when I install it in a new project using npm install generator-hapijs, not all the code is downloaded into my node_modules/generator-hapij ...