Single Pages: Hero images leave much whitespace
See original GitHub issueCurrent Behavior
Hero images on single page entries across many of the collections (like blog posts, events, resources, news, and so on), don’t fill the space afforded to the image, but instead leave a smaller image with extra, unused whitespace.
The current CSS with object-fit: contain;
should work, but seems to not be having the desired affect given conflicting(?) CSS.
Desired Behavior
It would be nice to have the images fill the empty space.
Screenshots / Mockups
example: https://layer5.io/community/events/hacktoberfest-prep-easing-into-cncf-open-source-projects
Contributor Resources and Handbook
The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the master
branch.
- 📚 See contributing instructions
- 🎨 Wireframes and designs for Layer5 site in Figma.
- 🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack
Issue Analytics
- State:
- Created a year ago
- Comments:20 (20 by maintainers)
Top Results From Across the Web
How to remove white space from single page's hero ...
Hi there,. The space you see is a combination of margin and padding assigned to the #page element the padding added to the...
Read more >Hero Image has white space left and right? First time coding
I've added a hero image but I'm getting white gaps appear down the side. It doesn't appear to be padding as the text...
Read more >White space top/bottom of Hero Image
I'm creating a new page and used one of the Page Builder pre-built layouts that include the hero image widget. I've used the...
Read more >Why do modern pages leave so much white space?
It seems like the section contains three columns and the third one is empty. Have You tried to switch the layout option from...
Read more >How to Select Hero Images that Boost Conversions and ...
I'm going to show you how you can select the right kind of hero image to grab attention, convert users and complement your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh, now I understand the real issue, please give me a little time, I will respond as early as possible.
Please create a PR with the changes, so that it is easier to confirm the changes work fine for all the pages.