The first method won't work. You have to position absolutely img or section tag. Otherwise the img will fit all the available space and push section tag with text out out the view.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.