My layout gets messed up when I zoom in and out

HI, YokoJS. Welcome to the forum.

It is not possible to tell why your page is not behaving as you expect it to without seeing the code for that page. If you can post a “working page”, one that starts with the doctype and ends with </html> and demonstrates the problem, that would be ideal. Otherwise, a link to your server would be fine.