Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 3 years ago

News Webpage using CSS

gsquarles•30
@gsquarles
A solution to the News homepage challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Why would my bottom images not shrink to 100% of the parent height? It overwrote the parent height and made it taller. Also how do I make a container where nothing will go wider or taller then? Like I tried to do with the container holding everything. I thought if I set its height and width to a certain amount. Here I chose vw and vh, that it would fit everything in. Did I just not make the other things small enough? So then it had to override the height that was set. Or what was the reason? Because the website was bigger than the goal or preview I was given I used scale on the whole html to make it a tad smaller. That seems like not the best code if I were to guess.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on gsquarles's solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License