First problem:
I have some text positioned over a responsive image using position: absolute
, however, I haven't set any font-size so it uses the default 16px. When I scale down the screen, the image scales down but the text stays the same size which results in the text taking a big amount of space over the image
Second problem:
I also have a square 100x100px div positioned over a responsive image using position: absolute
that contains the upvote/downvote buttons. Unfortunately once again when I scale down the image, the div stays the same and soon takes over the whole image if the image is scaled down a lot. I don't think I can use % for the div width and height here because the div parent is not a square, so if I say width: 10%;
, height: 10%
, the div will not be a square.
So my question is, should I try to completely replace pixels values with %, em, vh, vw, etc?
,
, etc you've used?
– Onyx Jul 10 '18 at 13:58