Best way to represent 1/3rd of 100% in CSS?

后端 未结 4 940
青春惊慌失措
青春惊慌失措 2020-12-04 18:33

I have a big

with three little
\'s inside of it, inline. They each have 33% width, but that causes some alignment problems b
4条回答
  •  攒了一身酷
    2020-12-04 19:39

    The highest resolution screen is a non-production NEC LCD screen with a resolution of 2800x2100. Even at that size, one pixel is 0.0357% of the width of the screen. So 33.33% should be close enough until 5,000-pixel-wide screens become the norm.

    John Resig did some research into sub-pixel rounding in different browsers, though, so depending on your three columns to equal exactly the width of the screen may never have a perfect solution.

提交回复
热议问题