I need to get my website to fit the screen

后端 未结 3 1705
执念已碎
执念已碎 2021-01-25 23:20

I have created my website as a fixed layout, with a width of 1600px, but the webpage on a smaller resolution looks too big. What am I supposed to do to make it looks good in ev

3条回答
  •  不知归路
    2021-01-26 00:01

    Use relative measures, like width: 100%. You can constrain this even more by using min-width and max-width.

    Apart from that, you can use CSS media queries to make styles that only apply if certain conditions are met, like a minimum or maximum width. If you use that, you can change the whole look and feel of your website, for instance by hiding parts on smaller devices or change from a 2 column to a 1 column text presentation on smaller devices.

提交回复
热议问题