Website that fits all screen resolutions

Good day,

I was wondering if someone could assist me, I’m very new to web development and have just finished developing a basic website using html and css only.

The resolution is perfect on my pc, but when i put the site on another pc everything gets out of proportion. What line of code would be required in order for me to fit my website onto any screen resolution including cell phones?

Thanks in advance