I have this code
<template>
<div class = "signup-form rounded
flex flex-col items-center justify-center
">
Signup
<FormField placeholder="Username"/>
<FormField placeholder="Email"/>
<FormField placeholder="Password"/>
</div>
</template>
It shows this:
However I want to set the width to half of the page width. When I try this:
<template>
<div class = "signup-form rounded w-1/2
flex flex-col items-center justify-center
">
Signup
<FormField placeholder="Username"/>
<FormField placeholder="Email"/>
<FormField placeholder="Password"/>
</div>
</template>
I get this:
Why does it happen? How do I fix it?
EDIT:
The parent component is App.vue:
<template>
<div id = "app"
class=" h-screen font-sans leading-normal tracking-normal mt-10">
<Header/>
<div class="flex flex-col md:flex-row">
<div class=" main-content flex-1 mt-12 md:mt-12 pb-24 md:pb-5 p-5">
<router-view/>
</div>
</div>
<Footer/>
</div>
</template>


