Pixels vs. Points in HTML/CSS

后端 未结 9 1457
你的背包
你的背包 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 01:45

    I use pixels for nearly everything.

    For me, it "feels" like I have more precise control.

    For the few things that I need to dynamically resize with the window, I use percent.

    EDIT:

    What is "em"?

提交回复
热议问题