The alignment of Vuetify buttons is not consistent in the vertical direction

I'm a beginner with Vue and Vuetify, seeking help on aligning buttons properly. I have a container with v-text-fields and v-combobox centered in the middle.

Now I want to add three buttons below this form, but they are not aligned vertically. Each button appears lower than the others. How can I adjust this so they all align nicely at the top?

https://i.sstatic.net/yZxQb.png

<template>
  <div class="ladder">
    <v-container fluid>
      <v-row justify="center">
        <v-col cols="12" sm="6">
          <v-text-field
            v-model="higher_price"
            :rules="[rules.required, rules.number]"
            label="Higher Price"
          ></v-text-field>
          <v-text-field
            v-model="lower_price"
            :rules="[rules.required, rules.number]"
            label="Lower Price"
          ></v-text-field>
        </v-col>
      </v-row>

      <v-row align="start">
        <v-spacer></v-spacer>
        <v-col align="center" xs="4" >
          <v-btn color="primary"></v-btn>
        </v-col>
        <v-col>
          <v-col align="center" xs="4" >
          <v-btn color="primary"></v-btn>
          </v-col>
        </v-col>
        <v-col>
          <v-col align="center" xs="4" >
          <v-btn color="primary"></v-btn>
          </v-col>
        </v-col>
        <v-spacer></v-spacer>
      </v-row>
    </v-container>
  </div>
</template>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>

Answer №1

There are a couple of v-col elements in the template you created that are invalid. Removing them should resolve your issue. Give this a try:

<v-row align="start">
    <v-spacer></v-spacer>
    <v-col align="center" xs="4" >
      <v-btn color="primary"></v-btn>
    </v-col>
    <v-col align="center" xs="4" >
      <v-btn color="primary"></v-btn>
    </v-col>
    <v-col align="center" xs="4">
      <v-btn color="primary"></v-btn>
    </v-col>
    <v-spacer></v-spacer>
  </v-row>

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

broken alignment of right-aligned Bootstrap navbar

I need help with displaying a navbar on my webpage. I want the right side of the navbar to show different elements based on whether the user is logged in or not. If the user is not logged in, it should display "Login" and "Register," and if they are logged ...

HTML Preview is not rendering properly

https://i.sstatic.net/dqwR8.png I'm having an issue where the HTML I received is displaying without a header and footer like in the image provided. Can anyone help me understand why this is happening? I will attach the code below: ...

Pressing the close button will shut down all bootstrap models

Is there a way to fix an issue where closing Model2 also dismisses the main Model? In my code, there is a button "Launch modal" to open the Model, and within the Model, there is a button "Launch modal2" to open a new model called Model2. However, when ...

Clipping of the background image

http://jsfiddle.net/R82a4/ My attempt at achieving the desired result fell short: <div style="background-position: -50%; width: 100%; background-image: url('/assets/upload/stab/1/taccos.png'); background-repeat: no-repeat; background-size: 1 ...

Launching the Bootstrap 5 modal will cause the header and background to shift towards the right side

Currently, I am working with Angular 2 and Bootstrap 5 for the front-end of my project. I noticed that when I open a modal, the header and background shift to the right, covering the scrollbar. Upon closer inspection, I discovered that the HTML code trans ...

What is the best way to center a div horizontally when the width is unknown?

Check out the full screen result here: http://jsfiddle.net/anik786/UYkSf/4/embedded/result/ Here's where you can find the HTML/CSS: http://jsfiddle.net/anik786/UYkSf/4/ This is the HTML code: <div class="gallery_container"> <div class="pic ...

Tips for customizing the appearance of a checkbox made with AngularJS

I need to style the checkbox using CSS without modifying the HTML code provided due to company restrictions. Is there a way to customize the appearance of the checkbox purely through CSS? Below is the AngularJS code snippet: <label class="form-lbl n ...

CSS3 keyframes hover animation for Firefox

I implemented keyframes animation for a div on mouse hover using pure CSS3. The animation runs smoothly on all browsers (Google Chrome, Safari, IE, Opera) except for Firefox! I'm puzzled as to why it doesn't work only in Firefox. The animation ...

How can I horizontally center an element in CSS/HTML if auto-margin does not produce the desired result?

This is a snippet of the CSS code I'm using for my menu: ul { text-align: left; display: inline; margin: auto; width: 50%; position: fixed; top: 0; list-style: none; } I've attempted to use auto-margin left and right ...

Implementing validation and displaying fields with v-model in vue.js

Looking at this code snippet: <button type="button @click="editing=true">Edit</button> <form v-show="editing" @submit="onSubmit"> <textarea v-model="text"></textarea> </form> <div> Current value: {{text}} </ ...

What is the best way to vertically center a caption when an image is being hovered over

I'm facing an issue with aligning my caption vertically inside a div when hovering. The image within the div is larger than the div, and I want the caption to be at the center of the div. HTML <div class="container-fluid"> <div id="pag ...

I am attempting to display the Δ symbol on my website, however, it is not appearing on the webpage

In my attempt to display my company logo on the website, I encountered an issue where the Δ symbol is not appearing correctly in the browser. strong class="footer-logo">KyΔnsys</strong To address this problem, I have implemented unicode charset=" ...

Guide on utilizing the h function in Vue3 for seamless binding and passing of properties and events from parent to child components

Utilizing Vue3 and naive ui for front-end development has been a challenge for me as I primarily focus on back-end development and lack expertise in front-end technologies. To enhance user interaction, I incorporated naive ui’s BasicTable along with an ...

Fade in and out of page or div elements with a simple click

I've been dedicating some time to my recruitment website lately. As a beginner in coding, I'm looking for a script that will automatically fade out the Employment review content when clicking on each employment vacancy div and then fade back in w ...

Using an npm package to include CSS styles in a stylesheet

I created an NPM package that includes a CSS file that needs to be included in my main CSS file. In a typical HTML CSS website, I would need to write @import url("./node_modules/web-creative-fonts/index.css") but what I really want is to simplify ...

Can @keyframes be iterated through CSS (particularly Stylus)?

Here is some Stylus code I'm working with: for i in (1..3) .l:nth-child({i}) opacity (i / 5) When executed, the output looks like this: .l:nth-child(1) { opacity: 0.2; } .l:nth-child(2) { opacity: 0.4; } .l:nth-child(3) { opacity: 0.6; } ...

vuejs function for modifying an existing note

Method for editing an existing note with Vue.js in a web application This particular application enables users to perform the following tasks: Create a new note View a list of all created notes Edit an existing note Delete an existing note Prog ...

Ensure consistent switching of flexbox directional layout

I'm attempting to create a unique layout using only css3. My challenge is to achieve this without explicitly setting sizes, allowing the layout to flow freely. I am utilizing flexbox in my css for this purpose. After an automatic wrap, I want the layo ...

Ensuring that jQuery(document).ready(function() contains the appropriate content

Recently, I've been attempting to integrate a javascript gallery into my WordPress site. However, I'm encountering some confusion regarding what needs to be included in the .ready(function) to successfully run the gallery. The original jQuery fun ...

I'm puzzled as to why the text-align center doesn't seem to be functioning correctly when combined with margin 0

Jsfiddle (expand the window) https://jsfiddle.net/aq9Laaew/5793/ The phrase hello world isn't centered below the image. By switching to a larger image https://i.sstatic.net/F79On.jpg, this problem can be avoided. What's the best way ...