I am trying to achieve a 2-column layout with both columns at the same height.
This is how it currently appears:
And this is how I want it to be:
Here is my code snippet:
html {
background-color: lightblue;
font-family: Tahoma, Geneva, sans-serif;
margin: 0 auto;
}
#service {
padding-top: 40px;
margin-left: 40px;
height: 600px;
width: 100%;
margin-bottom: 50px;
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
}
#service .service {
Margin-left: 30px;
color: #c0392b;
font-size: 45px;
}
#service .service_txt {
margin-left: 30px;
margin-right: 50px;
color: #fff;
top: 190%;
}
<div id="service">
<p class="service">service</P>
<p class="service_txt">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium
quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus.
Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet.
Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui.
</p>
<p><img class="service_img" src="img/service.jpg"></p>
</div>