Which is better to use in CSS, percentage or pixels?
问题 I am not a CSS expert and I want to make a design that will look good in all browsers and resolutions. I noticed that some websites make their design ( width , height , margin , padding ) with percentage, not pixels, and I am doing all my design with percentage too. Does this approach have any problems? Please advise me. 回答1: You won't have any problems using this approach, both percentage and pixels work fine depending on your needs. If you need a fluid site, then percentage might be your