Pixels vs. Points in HTML/CSS

后端 未结 9 1439
你的背包
你的背包 2020-11-29 01:06

When creating an HTML page, should I specify things like margins with pixels or with points in CSS?

Is one of them considered to be better practice than

9条回答
  •  攒了一身酷
    2020-11-29 01:38

    The answer is: It depends. What are you using your margins for? Are they an integrated part of a balanced, resizable layout, or do they just provide a gutter around the edges? Percentages work better in the first case, and pixels work well in the second.

    You should try the different possibilities and determine which works best for your document. Since there is no "right and wrong" in this case, you can choose the answer that works best for you.

提交回复
热议问题