@JinahC
Posted
Your solution looks perfect. I am interested to know why you would refrain from using pixels.
@IzykGit
Posted
@JinahC
Using rem instead of pixels is just a better practice because rem scales better than pixels.
There are many different screen sizes today than there was when CSS1 was introduced and many screens have different pixel densities.
REM remains relative to the root HTML element.