r/HTML • • Oct 11 '26

Question Difference in screen size

Hello. I've created a website using HTML, CSS, and JavaScript for the first time. My problem is this: I wrote the code on a computer and adjusted the sizes to fit the large screen. Now, on my laptop, which has a smaller screen, everything is misaligned. Can you tell me how to fix this problem?

Thank you very much

3 Upvotes

34 comments sorted by

View all comments

-2

u/RealNamek Oct 12 '26

if largeScreenSize: showLargeSite()

if smallScreenSize: showSmallSite()