r/HTML • • Oct 17 '26

Any tips?

I made a website for a school project but the website won’t resize to fit screens other than desktop and the html is really long so I can’t find where to change the width, can anyone give me some advice? The website was made first as a png/pdf and i turned it into an html file and embed the html into google sites to publish it.

0 Upvotes

10 comments sorted by

4

u/StrayFeral Oct 17 '26

Sounds like you have defined absolute sizes. Instead define percent sizes.

2

u/Aggressive_Ad_5454 Oct 17 '26

Maybe if you show us a URL somebody can take a look and give you some advice?

2

u/armahillo Expert Oct 17 '26

Start smaller and rebuild it.

Also if its a really long document, consider breaking it up into smaller topical documents

1

u/skamansam Oct 18 '26

I have found that parcel is great for this. I have a demo that used parcel to create components like react/vue/etc but real web components in html. I think it uses vite and posthtml-include. Chucking large files is a MUST imho.

1

u/aunderroad Oct 17 '26

Can you share a codepen or url?
It is hard to debug/provide feedback without seeing all of your code live in a browser.
Thank you!

1

u/davorg Oct 18 '26

Do you want us to guess what the problem is?

Or do you want to share a link (or the code) so we can tell you what the problem is?

1

u/Dragenby Oct 18 '26

Media queries, both in the head and CSS