This is my html:
<div class="targetdiv">My Text that come out of div</div>
<style>
.targetdiv{
width: 24%;
border: 1px solid red;
}
</style>
with the above design my text come out of div. But if I change the width
and use pixel instead of percentage every thing would be OK:
<style>
.targetdiv{
width: 190px;
border: 1px solid red;
}
</style>
So how could I use percentage in width
and my text remain inside of div? any suggestion?