Is there a way to place an <img>
element at the bottom of its parent <div>
without using position: absolute
or position-absolute
class while maintaining the design integrity?
Using absolute positioning disrupts the entire layout I have created.
I've attempted various solutions such as adding another container <div>
for the image and experimenting with attributes like vertical-align
, bottom
, margin-bottom
, but none have been successful.
The desired outcome is to achieve a design similar to this: https://i.sstatic.net/pxVIQ.png
However, I am facing the aforementioned issue.
I aim to have the red images:
- Maintain their original size (in px) on desktop devices without resizing to fit the tallest one.
- Be positioned at the bottom of their respective divs.