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

1 Upvotes

34 comments sorted by

View all comments

11

u/rackodo Oct 11 '26

Since everyone else in the replies are acting like children:

Look into responsive CSS! You can use media queries to set different rules based on the max width of the user's screen. Use this as a starting guide, and experiment from there.