DEV Community

Discussion on: Feedback on personal website

Collapse
 
afif profile image
Temani Afif

better use width:100% for #home-projects instead of 100vw to avoid getting an horizontal scrollbar when reducing the screen.

and maybe use overflow:auto for #projects #home-projects .panel > div instead of scroll (unless you explicitely want to always show the scrollbar)

Collapse
 
alvaromontoro profile image
Alvaro Montoro

Thanks! Adding these changes.

I don't fully understand the difference between 100vw vs 100% thing though. Could you give me some info on that one?

Collapse
 
afif profile image
Temani Afif

The 100vw include the width of the vertical scrollbar so basically it's equivalent to 100% + scrollbar width and since you have the vertical scrollbar you will always have a small overflow equal to the width of the scrollbar and this will trigger the horizontal scrollbar.

Thread Thread
 
alvaromontoro profile image
Alvaro Montoro

This is a great explanation. Thank you!