Latest solutions
Latest comments
- @victoriacesar@Rabin92
Hey @victoriacesar,
Great job on this challenge!
It's responsive and looks great on all screen sizes. To
center
thediv
you can add theheight: 100vh;
to.container
in yourmedia queries
.Hope this helps & happy coding!
- @lyndseyharvey@Rabin92
Hey, Lyndsey! 👋
Congratulations on completing your first challenge! 🎉 Your solution is looking good.
On small devices (portrait mode), there is horizontal scrolling caused due to the
fixed width
given to theimg tag
and thepadding
of50px
to themain tag
. To fix this issue you can remove the fixedwidth property
and addmax-width: 100%;
to#hero-image img
and then simply replace themain tag
padding
value to1em
.Here are few other suggestions:
- For a better user experience you can add
cursor: pointer
to thebutton tag
. - In your HTML code you have used
id attribute
as a selector. I would suggest you use aclass selector
instead becauseid's
are unique whereasclasses
are reusable. Check out this resource on the difference: https://css-tricks.com/the-difference-between-id-and-class/ - Currently it is still displaying a mobile wallpaper on larger devices. To display a desktop wallpaper, you can replace
background-image
to desktop on media queries. - I would suggest you use
relative units
instead offixed
. However, it depends on the different circumstances therefore to be clear you can watch this helpful tutorial on when to use differentCSS Units
by Kevin Powell - https://www.youtube.com/watch?v=N5wpD9Ov_To - Regarding your code, it's looking good. Just keep coding, practicing and you will start seeing a difference.
Hope this helps and Happy Coding! 😊
- For a better user experience you can add
- @HOOPhelie@Rabin92
Hey, Hoophelie! 👋
You have done a great job on this challenge! 🙌
The site is fully responsive and looks great on all screen devices. Nicely formatted code with semantic tags in use.
There's just a minor issue with an overlay as it does not fully expand to viewport size on a small screen landscape mode. To fix this issue, you can follow these steps:
Add this code to the body tag:
body { position: relative; }
Remove width & height property from
.overlay
class and add the following code instead:.overlay { top: 0; right: 0; bottom: 0; left: 0; }
And lastly remove
height
property from a small screen devices with the class name of.landscape-page
and add it to the media queries for amedium-large
screens.To fix the accessibility issues, you can simply add a
label tag
. Learn more about these tag here: https://www.w3schools.com/tags/tag_label.aspHope this helps and Happy Coding! 😊
- @Sophia0501@Rabin92
Hey @Sophia,
Congratulations on completing your first challenge!
I took a look at your site and currently, it's looking great on all screen devices. It's not breaking in any form. However, if you would like to learn about responsive design, you can check out the following resources on
CSS Grid, FLexbox & Media queries
.- https://css-tricks.com/snippets/css/complete-guide-grid/ - CSS Grid
- https://css-tricks.com/snippets/css/a-guide-to-flexbox/ - Flexbox
- https://www.w3schools.com/css/css_rwd_mediaqueries.asp - Media Queries
Hope this helps!
- @munloop@Rabin92
Hello @munloop,
Congratulations on completing your first challenge!
You have done a great job here. The design almost matches the mockup and looks great on most of the devices. My only suggestion is on a small screen landscape mode, the
attribution
border touches the card, to fix this problem you could simply addmargin-top: 20px
to theattribution
class.Your
Sass
is looking good too, you have grasped a good understanding of features likevariables
andampersand
. To learn more about other features you can visit this awesome website: SassHappy Coding!
- @RabWinter@Rabin92
Hey @Rwinter88,
Congratulations on completing your first challenge!
Your site looks good, it's responsive and your
email validation
works fine.To fix the accessibility issues, you can add a
label tag
. You can learn more about this here: https://www.w3schools.com/tags/tag_label.aspHappy Coding!