My websites layout gets messed up when I zoom in or out! :(

The main reason not to use IDs, is the reason you are using IDs: because of their very high specificity, it makes the styles very difficult to override when needed.
If you find you are regularly having to use IDs as a means to brute force a selection, the chances are you approach is flawed somewhere before that point and to need to rethink your methods. Like using !important it’s a slippery slope that will end in an unmaintainable mess.
The other big reason against it is that an ID must be unique to the page, so it can only be used on a single element which is quite an inefficient way to write css.
I don’t say I never use ID selectors, but only very sparingly when there is a special reason to do so.

2 Likes