height not working what?
Answered
French Lop posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
French LopOP
Heres my code, the div isn't stretching as in image
import HeroHome from "@/components/subpages/hero";
export default function Home() {
return (
<div className="flex flex-col justify-center items-center h-full">
<div className="flex flex-row justify-center items-center bg-base w-full min-h-screen">
<div className="flex justify-center items-center flex-col bg-white w-1/2 h-full">
Hello
</div>
</div>
</div>
);
}
![Image](https://cdn.discordapp.com/attachments/1197872734059896832/1197872734403821588/image.png?ex=65bcd8eb&is=65aa63eb&hm=232fd9d96e015756a1f4edcb09451a317e978fa21eb5446a153c448f2826f26d&)
Answered by Ray
<div className="flex flex-col justify-center items-center h-full">
<div className="flex flex-row justify-center items-center bg-base w-full min-h-screen">
<div className="flex justify-center items-center flex-col bg-red-500 w-1/2 self-stretch">
Hello
</div>
<div className="flex justify-center items-center flex-col bg-white w-1/2 self-stretch">
Hello
</div>
</div>
</div>
28 Replies
![Avatar](https://cdn.discordapp.com/avatars/743561772069421169/3c5d689eee4459a24fc420063411c016.webp?size=256)
Ray
<div className="flex justify-center items-center flex-col bg-white w-1/2 h-full flex-grow">
try to add
flex-grow
to the div![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
French LopOP
That just extended the width
i tried with just one
import HeroHome from "@/components/subpages/hero";
export default function Home() {
return (
<div className="flex flex-col justify-center items-center h-full">
<div className="flex flex-row justify-center items-center bg-base w-full min-h-screen">
<div className="flex justify-center items-center flex-col bg-white w-1/2 h-full flex-grow">
Hello
</div>
</div>
</div>
);
}
![Image](https://cdn.discordapp.com/attachments/1197872734059896832/1197957573719097476/image.png?ex=65bd27ee&is=65aab2ee&hm=123c0daf0cc9c9271f27be03848399feff3b7fc81520bb9932678c09f7bd7178&)
![Avatar](https://cdn.discordapp.com/avatars/743561772069421169/3c5d689eee4459a24fc420063411c016.webp?size=256)
Ray
flex-row to flex-col?
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
French LopOP
that did it
bUT
now i cant put the child divs in row
![Image](https://cdn.discordapp.com/attachments/1197872734059896832/1197957844343996437/image.png?ex=65bd282f&is=65aab32f&hm=d6446eb598dd66da3694e12bac4a78e2bbdf02ee956f8a466a45e4d9f444f565&)
![Avatar](https://cdn.discordapp.com/avatars/743561772069421169/3c5d689eee4459a24fc420063411c016.webp?size=256)
Ray
so you want a row with full height?
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
French LopOP
YES
sorry
my caps lock is broken
![Avatar](https://cdn.discordapp.com/avatars/743561772069421169/3c5d689eee4459a24fc420063411c016.webp?size=256)
Ray
<div className="flex flex-col justify-center items-center h-full">
<div className="flex flex-row justify-center items-center bg-base w-full min-h-screen">
<div className="flex justify-center items-center flex-col bg-white w-1/2 self-stretch">
Hello
</div>
</div>
</div>
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
French LopOP
import HeroHome from "@/components/subpages/hero";
export default function Home() {
return (
<div className="flex flex-col justify-center items-center h-full">
<div className="flex flex-col justify-center items-center h-full">
<div className="flex flex-row justify-center items-center bg-base w-full min-h-screen">
<div className="flex justify-center items-center flex-col bg-white w-1/2 self-stretch">
Hello
</div>
</div>
</div>
</div>
);
}
![Image](https://cdn.discordapp.com/attachments/1197872734059896832/1197958470071222333/image.png?ex=65bd28c4&is=65aab3c4&hm=76304b163264cde37270550ec568c78945e64605700adbb7ceaf0ef2f766ac62&)
This shouldn't be happening
it should be workign properly
never encountered this b4
![Avatar](https://cdn.discordapp.com/avatars/743561772069421169/3c5d689eee4459a24fc420063411c016.webp?size=256)
Ray
wdym?
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
French LopOP
They normally work with this code
like this is the first time ive seen an issue like this
![Avatar](https://cdn.discordapp.com/avatars/743561772069421169/3c5d689eee4459a24fc420063411c016.webp?size=256)
Ray
this work
![Image](https://cdn.discordapp.com/attachments/1197872734059896832/1197958876214083674/image.png?ex=65bd2925&is=65aab425&hm=1a9bbe52c53e65c235272c615427eb1c8cc1e870951eda2d80dbd1446fdfc38c&)
![Avatar](https://cdn.discordapp.com/avatars/743561772069421169/3c5d689eee4459a24fc420063411c016.webp?size=256)
Ray
<div className="flex flex-col justify-center items-center h-full">
<div className="flex flex-row justify-center items-center bg-base w-full min-h-screen">
<div className="flex justify-center items-center flex-col bg-red-500 w-1/2 self-stretch">
Hello
</div>
<div className="flex justify-center items-center flex-col bg-white w-1/2 self-stretch">
Hello
</div>
</div>
</div>
Answer
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
French LopOP
Oh yeah
it does
wait whats the difference
![Avatar](https://cdn.discordapp.com/avatars/743561772069421169/3c5d689eee4459a24fc420063411c016.webp?size=256)
Ray
you have one more div
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
French LopOP
Oh
thank you