I want to have an avatar image with two divs on its right that are vertically aligned to it.
https://jsbin.com/qafiroquve/1/edit?html,css,output
I've read so many posts about this, but none of them seems to help me.
What is the best approach to having the image on the left with 30% of the main div's (header
) width, and the info
div with 70% of it?
If either of the info
divs (name
or position
) has too much text, I want the info
div to get vertically aligned to the image on its left.
I also want this info
div to have a margin with the image.
I've tried so many options: float: left
on avatar
div, display: inline-block
on both avatar
and info
, width: 30% and 40%
. I don't want to use bootstrap for this purpose as it complicates things and I want to keep it as simple as possible.