Hero Section help
first time making a hero section, i am using flexbox. do i give it a set height or no? if so what is the best practice.
im trying to make my hero look like his, its pretty big but doesnt go all the way down
5 Replies
Typically try to always let your content determine height. Don't set strict heights or if you do* maybe some min/max (smaller elements you might be or using width/height/aspect). Layout though its good to let it "grow" with your content. As always don't live in absolutes though (best practices).
also you can always inspect that site and see how they did it 😄
okay thanks
yea i dont really like setting strict values
yea just # depends
Margins / Padding ?
If you wanna fix heights use clamp()