Px vs % (caution: longread)
Disclaimer: please don't mind my English, I'm not native. So I've been learning coding for 19 days already and today I uploaded my first somewhat sizeable HTML+CSS code on SoloLearn (I'd be happy if you check it out and comment on what I need to improve) and encountered a problem: my svg figures just wasn't there when I opened this code from my phone. After a small research I realized the reason was that I used px instead of % when creating circle, rectangle, etc. and since my phone's screen is less wide than my laptop's screen it was just off the screen. I had to lower the px values of the figures from 400 to 100 so they are showed properly. The conclusion I made from this is that it's probably usually better to use % and not px so that your code is properly visible on every possible screen. And finally, my question is: are there any cases when px is preferred over % and why? https://code.sololearn.com/W8B82nRpjK2i/?ref=app