0

I am new to vue and vuetify and just use v-card tag from vuetify.

I want that the v-card have 100% width, (without left or rigth side spacing)

Is there any configuration that can be made on these initial tags ?

<v-layout
    column
    justify-center
    align-center
  >

  <v-flex
      xs2
      sm2
      md2
    >

How can it ben done ?

I try :

.section{
    padding-top: 100px;
    padding-bottom: 100px;
    width:100%;
  }

and :

<div class="section section_dark">services</div>

But still there is some left and right space for this div.

Ângelo Rigo
  • 2,039
  • 9
  • 38
  • 69
  • please provide a pen like [this](https://codepen.io/anon/pen/zXPwJN?&editable=true&editors=101) in order to help you – Boussadjra Brahim Apr 15 '19 at 19:28
  • 2
    You can use class `ma-0 pa-0`, which would apply 0 margin and 0 padding. [vuetify spacing](https://vuetifyjs.com/en/framework/spacing#spacing) – ljubadr Apr 15 '19 at 19:28
  • 1
    Possible duplicate of [Removing Margins and Padding within Vuetify](https://stackoverflow.com/questions/50417431/removing-margins-and-padding-within-vuetify) – Traxo Apr 15 '19 at 19:29
  • @ljubadr ma-o and pa-0 works, thank you – Ângelo Rigo Apr 15 '19 at 20:38

2 Answers2

2

I think you may be able to use the spacing helper classes.

Look here: https://vuetifyjs.com/en/framework/spacing

You can add this to your div, I believe:

<div class="section section_dark ma-0 pa-0">services</div>
Josh Newlin
  • 108
  • 2
  • 11
  • I try, but still there is a hard to find property, that maintains some good space from the right margin of the browser. All i do was using nuxt js to generate a PWA app and choose the vuetify framework. – Ângelo Rigo Apr 17 '19 at 12:49
1

You can try row instead of column :

<v-layout
    row
    justify-center
    align-center
  >

and use special props for card :

<v-card
  min-width="100%"
>
Piva Gregory
  • 442
  • 2
  • 13
  • Now, using row and min-width:100% the left collumn disappear, but the right collumn is still active, i am looking what can it be – Ângelo Rigo Apr 16 '19 at 13:24