CSS Pixels vs Rem Finally Answered | Learn Web Dev with Austin Gil

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 3

  • @kueifengtung
    @kueifengtung 11 месяцев назад

    In your opinion, does using rem make more sense for padding/border? You said it depends, but from a UIUX perspective, is there one more correct answer?

  • @wasit-shafi
    @wasit-shafi Год назад +1

    very informative video, i just have one query, if we consider choosing the rem, and in case the user changes its setting in the browser, now obviously our text will take more space, so now I guess there will be more overhead to manage the website layout...?

    • @heyAustinGil
      @heyAustinGil Год назад

      Yes and no. There's not one sure-fire solution I can tell you that will work for all websites, but if you are building things and testing them out to be responsive anyway, it's not a lot of overhead. It becomes more nuanced if you use rem for some properties and px for others. But either way, I think the most important thing is the user experience, and if a user sets their font size to be larger, then websites should respect that.