How to deal with different screen resolutions in CSS?

前端 未结 5 704
礼貌的吻别
礼貌的吻别 2020-12-10 19:36

I am new to UI design- was wondering what the best way to deal with different screen resolutions is when positioning various HTML elements? I thought using %ages would be t

5条回答
  •  爱一瞬间的悲伤
    2020-12-10 19:59

    % is the correct way. If you start using Javascript to detect resolution and adjust design based on that your code is going to turn into tasty meat spaghetti very quickly.

    Back in the day I was always told to design with a minimum resolution of 800x600, but nowadays I always go by 1024x768 as a minimum resolution.

    Without more specifics about designs, we can't really help more I'm afraid!

提交回复
热议问题