javascript - Images not loading in chrome -


for small project doing, creating masonry style picture board using css3 column count. works , creates 4 columns want use.

my problem is images populate cards render in 1st column. in rest, their, , if click , drag or right click provides image url/the thumbnail. in firefox , internet explorer renders correctly , images show in every column, not on chrome.

the html pictures below:

<div class="col s12 masonry">     <div class="masonryitem card" ng-repeat="photo in recentphotos">          <div class="card-image">             <img ng-src="assets/images/photos/{{photo.filename}}">             <span class="card-title" ng-hide="photo.editing">{{photo.name}}</span>             <input class="card-title" title="title" type="text" ng-model="photo.name" ng-show="photo.editing" ng-blur="updatephoto(photo)" autofocus/>         </div>         <div class="card-content">             <p ng-hide="photo.editing">                 {{photo.description}}             </p>             <input title="description" type="text" ng-model="photo.description" ng-show="photo.editing" ng-blur="updatephoto(photo)" autofocus/>         </div>         <div class="card-action">             <a href="" ng-click="editphoto(photo)">edit</a>         </div>      </div> </div> 

the css masonry classes below:

.masonry {  /* masonry container */     column-count: 4;     -webkit-column-count: 4;     -moz-column-count: 4;     column-gap: 1em;     -moz-column-gap: 1.5em;     -webkit-column-gap: 1.5em;     column-fill: auto;     -moz-column-fill: auto;     -webkit-column-fill: auto; }  .masonryitem {  /* masonry bricks or child elements */     background-color: #eee;     display: inline-block;     margin: 0 0 1em;     width: 100%; } 

unfortunately cannot upload screenshot on here, cannot show actual site jsfiddle

demonstrates problem. although images aren't on there, can see first column has 'broken image' link rest not despite having images linked in them.

try removing overflow: hidden .card class

.card {     position: relative;     /* overflow: hidden; */     margin: 0.5rem 0 1rem 0;     background-color: #fff;     transition: box-shadow .25s;     border-radius: 2px;  } 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -