I have the following <p>
with class description and I want it to fill the remaining empty space of its container div (summary-container
):
<div class="summary-container">
<h2>Title here</h2>
<p class="description">Lorem ipsum dolor sit amet, conoasnasdnaonaosnasodnoasd ad
dnandoanoadn oandoasnoasdn osandoand ods asnadnsoasdndsanasdn
dnandoanoadn oandoasnoasdn osandoand ods asnadnsoasdndsanasdn
dnandoanoadn oandoasnoasdn osandoand ods asnadnsoasdndsanasdn
dnandoanoadn oandoasnoasdn osandoand ods asnadnsoasdndsanasdn
</p>
</div>
this are my styles:
#what-to-do .summary-container {
float: left;
background: red;
width: 190px;
height: 100px;
margin-left: 10px;
}
#what-to-do .description {
background: cadetblue;
}
But this is how it looks:
I want it to fill the part as the black lines show In this demo of ionic it works just how I want it to work.
So weird!!!