@vanzasetia
Posted
👋 Hi Mathias!
👍Good job on completing this challenge! This challenge has a tricky position for the images 😅.
I have some feedbacks on this solution:
- Wrap all your page content with
main
tag except theattribution
. For the attribution, swap thediv
withfooter
. - Currently the accordions are not accessible using keyboard (toggle the accordion panel) and screen reader. I recommend to use
summary
anddetails
tags instead ofdiv
. For the JavaScript, you're going to only allow the user to open one accordion panel at a time (like what you have done). - Also don't forget to add
:focus-visible
style to all accordion panel. This is helpful for users that navigate your website using keyboard. - For
0
value on CSS, you don't need to put any units after it. Just write0
. - Use
rem
or sometimesem
unit instead ofpx
. Usingpx
will not allow the users to control the size of the page based on their needs. - Don't limit the height of the
body
element, it will not allow the users to scroll the page if the page content needs moreheight
. Usemin-height
instead. - Make sure that your solution looks good on all screen sizes, currently on mobile landscape mode and on desktop view doesn't look good.
- About the
container
, I guess you can don't need to set anyheight
for it, I recommend to let thepadding
and the elements inside it that control theheight
. This will make yourcontainer
more responsive. - Remove this CSS code unless you have a reason of doing it. If you have the reason, please tell me.
html {
height: 100%;
}
- Consider using
js-
as the prefix for any DOM elements that you want to manipulate through JavaScript and don't put any styling to anyjs-
class (it's only for JavaScript). This will make your code more maintainable! - I recommend to use
let
instead ofvar
to any variables that you want to reassign.
That's it! Hopefully this is helpful!
@vanzasetia wow, i appreciate your feedback, really u help me so much. Before to continuing, i need say "I don't know speak english, but i try, sorry".
For this code: html { height: 100%; } i have complications with the backgroung color, this color does not fit full screen, so, i add this code in <html> and this is solved.
Really thanks for comment my code and helpme to grow. I will try to apply the changes mentioned above.
@vanzasetia
Posted
@mathias9968 About the height
property on the html
element, I got it. But, I would recommend to set min-height: 100vh;
on body
element instead on the html
element. By setting the min-height: 100vh
on the body
element, you can remove the background-repeat
property and the height
property on the html
element.
You're welcome! 😉 Glad that it is helpful for you!
@vanzasetia Yes, background-repeat is not doing anything here. take a new screenshot with a more similar design, did you see it?. Thank you for your recommendations, I appreciate so much.
Have a nice day dude!! :) Greetings from Argentina.