DEV Community

Discussion on: Do You Want to Learn How I Built my Website from Scratch? πŸ› 

Collapse
 
francoscarpa profile image
Franco Scarpa

Thanks! I’d like to make pages with little content to not use scrollbars. However, there’re so many devices: if I adjust the font-size to make the site not show a scrollbar on my tablet or desktop, maybe other tablets and desktop PCs are forced to show it. Moreover, the idea behind my website is basing the sizes of elements and spaces on the viewport width. That’s the core idea. I love websites that use all the space available, so I basically use a CSS variable that depends on the width of the viewport. This lets me make the appropriate calculations and present the content in the correct way for each device.