-1

I'm trying to decrease huge gap between rows using vuetify but could not decrease. I tried by using css and vuetify spacing as well but doesnot work.

Expected form

enter image description here

Actual form enter image description here

<v-container>
  <v-row>
    <v-col cols="4">
      First Name
    </v-col>
    <v-col cols="4">
      <v-text-field v-model="firstname" :rules="nameRules" label="first name" required class="ma-0 pa-0"></v-text-field>
    </v-col>
  </v-row>
  <v-row>
    <v-col cols="12" md="4">
      Last Name
    </v-col>
    <v-col cols="12" md="4">
      <v-text-field v-model="lastname" :rules="nameRules" label="Last name" required class="ma-0 pa-0"></v-text-field>
    </v-col>
  </v-row>
prabina sht
  • 217
  • 3
  • 12

1 Answers1

0

Use classes 'ma-x' or 'pa-x' for removing extra padding and margin from row and cols where x id number from 0-12.

Please refer: https://vuetifyjs.com/en/styles/spacing/

Pallavi
  • 21
  • 7