How do I maintain the size of the image without shrinking the text.

Please, I need help on that, it should be like the image here 👉🏾 Thanks 🙂
5 Replies
Tenkes
Tenkes2y ago
Can't do much without seeing any code, but first thing that comes to mind would be to use position absolute to put it where it needs to be
ghostmonkey
ghostmonkey2y ago
like Godfather said, it's hard to tell exactly what you are trying to do with the description you gave, but you could probably achieve it simply by making the image a background image of the div you have the text in and aligning it to the right
Corizon
CorizonOP2y ago
I was going to do a codepen but I wanted to use that phone image particularly,. The image is big but once I set a
display: block;
max-width: 100%;
display: block;
max-width: 100%;
it shrinks in size. I've tried setting a position absolute to it but it shrink in size by 0px x 0px and disappears from the page. If I inspect I still see it there with a 0 x 0 rendered size 😦 But, the size of the image is actually 2742px x 2100px @ghostmonkey I tried this and it worked!! Thanks a lot. @Tenkes I also appreciate your effort ❤️
ghostmonkey
ghostmonkey2y ago
awesome, glad it helped
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server