My code snippets:
<article class="featured">
<img src="http://www.placehold.it/300x100/ff0000">
<p>
<!--Text-->
</p>
</article>
<article class="sub-featured">
<img src="http://www.placehold.it/300x100/00ff00">
<p>
<!--Text-->
</p>
</article>
<article class="sub-featured">
<img src="http://www.placehold.it/300x100/0000ff">
<p>
<!--Text-->
</p>
</article>
Also, my SASS code:
body{
margin:0;
img{width:100%;}
article.featured{
p{width:50%;}
}
article.sub-featured{
width:50%;
margin-left:auto;
}
}
This is the current state of my HTML:
https://i.sstatic.net/2IET4.png
I aim for it to resemble this design:
https://i.sstatic.net/OmvCW.png
The challenge here is achieving this design responsiveness across different screen sizes. The alignment I seek is having the bottom of the green image consistently align with the bottom of the red image regardless of the screen width. Applying position:relative or using CSS transformations won't suffice due to the unpredictable height of the articles.
Any assistance would be greatly appreciated!