Great tutorial thank you, but I struggled for an hour or so on my background image not being responsive after changing the vw to 100%, it finally worked after changing the background image to a cover instead of custom in BACKGROUNDS sections of the HERO SECTION.
If you did the same using only PX and VH/VW for the section sizes, the outcome would have been the same because the root element's pixel size didnt change. In that case, whats the point of using rems if you know, that the root element will stay 16px no matter what?
Any particular reason that you use REM's vs. EM's for padding? I've always struggled with deciding on whether to use REM's for padding / margins or use EM's for padding / margins.
Its preference and sort of "use case" scenario. REMs (root-EMs) are *usually* based at 16px because of the user's screen size (there are many). EMs take the element's font size. If you set both sides of the padding to "1em" and change the font size. Your element will scale with it. Its neat.
Can someone help me with one issue? I have a div that has content (text) in it and when i scale it down to mobile portrait, that same div doesn't increase its height as it should and final product is one mess where text overlays that div. I don't have any specific height to any of the divs in section.
So when you click on the media icons at the top are you really defining (albeit in a much more user friendly way) CSS @media queries? Once the design is finished can you then export the HTML and CSS along with the media queries?
@@ArnauRos Is it a good practice to change the image at all? I mean, to set a display NONE to the full image (for desktop) and upload a new one for tablet and mobile (resized in Figma maybe)? Or it is not recommended?