r/HTML • u/Sad_Ant5147 • 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
3
u/ferriematthew Oct 17 '26
https://www.w3schools.com/htmlcss/htmlcss_layout_flexbox.asp
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/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