What I am trying to achieve: center a container div (that contains two divs) and in 2nd div, bottom align text
- in my 1st div, it's a picture
in my 2nd div, two paragraphs of text
———————----- | | | | column2 | column1 | -———————------- | picture | | Paragraph | | | ———————-------- | | ———————————------------------ | | | a paragraph of text | | | | of text of text of text of | ——————----—— ———————----------------------
My issue:
I can't align my two paragraphs to be at the bottom. They are at the top.
My container div isn't aligned to the center too
Currently they look like this:
———————----- -———————-------
| picture | | Paragraph |
| | ———————--------
| | ———————————------------------
| | | a paragraph of text |
| | | of text of text of text of |
| | ———————----------------------
| |
| |
| |
------------
My current code:
<body>
<div class="container">
<div class="img column1">
<img id="img" src="https://animage.jpg">
</div>
<div class="comment column2">
<p>a paragraph</p>
<p>another paragraph</p>
</div>
</div>
</body>
.column1, .column2{
width:300px;
float: left;
margin: 10px;
}
#img{
max-width: 300px;
max-height: 600px;
}
.container {
width: 80%;
padding-top: 100px;
margin: 0 auto;
}