Height: Minimum & Maximum and Width: Minimum & Maximum

In this lesson (https://www.codecademy.com/courses/learn-intermediate-css/lessons/sizing-elements/exercises/height-max-min) the min-width and min-height was specified using pixels (px)

According to the lesson we use px for hard code, in a real live project are we to use px to set the min-width/max-width and min-height/max-height for text?

Hey @byte6953803474

It depends on what you’re trying to achieve but if you want a project to be responsive, it would make things easier if you use rem or em or percentage.

1 Like

Ok thanks.

But I read an article that it is more preferable to use rem than em

What do you have to say about this?

P.S: I have worked on some projects on frontend mentor and I used px though out (though I haven’t learn about reponsive design then). I want to now make them reponsive

And which CSS framework do you think one should learn? Bootstrap or Tailwind (I guess this are the most popular ones now)

I agree, it’s just easier to deal with rem than em

Going back to previous project is a good way to get comfortable with a new concept.

They are, ideally you should test both to see which one you prefer, I personally like the modularity of Tailwind.

1 Like

Thank you so much for your time