Do I use fixed height of 100vh for the hero/ first section ?

Should I use fixed height or add an insane amount of padding ?
No description
6 Replies
vince
vince•6d ago
I'd use min-height vh / dvh or some variation personally for the hero section
i_lost_to_loba_kreygasm
should I use background image for this or image and absolutely position the text ?
No description
vince
vince•5d ago
Could do either but I'd use an image since it'll make it easier to position the text
i_lost_to_loba_kreygasm
yo thanks for the help 🙂 , I really appreciate it 🙂
Simon
Simon•3d ago
Wether to display an image via CSS or as HTML-element depends on its value and isn't just a question of architecture. If I am not mistaken, also today Search Engines and Screen Readers do not read background-image as page content.
clevermissfox
clevermissfox•3d ago
This is correct , that's why bg images a re purely for decoration; if the image is necessary for context it needs to be in the html with an img, picture, figure etc

Did you find this page helpful?