Jump to content

image changes layout in another div?


eiranix

Recommended Posts

Sorry if this is a stupid question, but why does the image in the third div affect the layout of the text in the first div?

.table {    display:table;}.cell {    width:100px;    display:table-cell;    background-color:lightblue;}.gutter {    display:table-cell;    min-width:20px;}
<div class="table">  <div class="cell">    Some Text  </div>  <div class="gutter"></div>  <div class="cell">    <img src="http://a.deviantart.net/avatars/a/p/aperture-a.png">  </div></div>
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...