I’m having a problem with aligning in CSS. What I have here: https://jsfiddle.net/kay297/snvfubkp/2/
I want to make an "About me" page like with the layout like in the image below:
Sample about me website
In what I have, the red block is a placeholder for the image. On the right side, even though I added vertical-align: top
for the header
class and vertical-align: middle
for the description
class, they still sit at the bottom of the container or text-container.
Can anyone enlighten me on this?
2
Answers
That’s the correct CSS command you want:
I think you were just applying it to the wrong div. Here’s your jsfiddle with the correction:
https://jsfiddle.net/zj8293ru/
You need to something like this
The html:
The css:
If you replace header with
<h1>
and description1 with<p>
the page will look like the example