Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to draw a bottom border to each of 3 inner div-columns inside parent div and each column bottom border must touch the bottom border of parent div?

<div id="parent"> ....<div class="column1"></div> ....<div class="column2"></div> ....<div class="column3"></div> </div> ======================= ||....-------;;;;;-------;;;;;-------::::::::|| ||....|.......|----|.......|----|.......|::::::::|| ||....|.......|----|.......|----|.......|::::::::|| ||....|.......|----|.......|----|.......|::::::::|| ||__|___|__|___|__|___|____||

user-image
Question added by Deleted user
Date Posted: 2013/06/25
Deleted user
by Deleted user

<p>&lt;div id="parent"&gt;</p> <p>    &lt;div class="col"&gt;column1&lt;/div&gt;</p> <p>    &lt;div class="col"&gt;column2&lt;/div&gt;</p> <p>    &lt;div class="col"&gt;column3&lt;/div&gt;</p> <p>&lt;/div&gt;</p> <p> </p> <p>---------------------------------</p> <p>Styling: </p> <p>#parent {</p> <p>      border:1px solid #b2b2b2;</p> <p>      overflow:hidden;</p> <p>      display:inline-block;</p> <p>}</p> <p> </p> <p>.col {</p> <p>      float:left;</p> <p>      border:1px solid red;</p> <p>}</p> <p>and this is the code I ran on an online editor:</p> <p><a href="http://cssdesk.com/CD4Dq">http://cssdesk.com/CD4Dq</a></p>