I feel like I'm missing something here. I've got a website for a client where the images show up perfect in Chrome and just fail to appear entirely in Safari. I'm using only HTML and CSS. Any ideas? The live site is at angelahartley.net
HTML:
<ul class="gallery">
<li><img src="img/home1.jpg" title="newborn greta: by Josh Muir" alt="newborn greta in arms"></li>
<li><img src="img/home2.jpg" title="newborn greta: by Josh Muir" alt="baby greta on a rainbow"></li>
<li><img src="img/home3.jpg" title="photo by Santa Cruz Birth Photography" alt="baby, mom, and dad in birthing pool"></li>
</ul>
CSS:
.gallery {
width: 100%;
margin: 0 auto;
padding: 0;
list-style: none;
background-color: #947960;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-box;
display: flex;
flex-wrap: nowrap;
justify-content: space-around;
align-items: center;
}
.gallery li {
float: left;
width: 33.33333333%;
margin: 4px .5% 1px .5%;
padding: 0 ;
}
img {
max-width: 100%;
border: 1px solid #00565E;
border-radius: 2.5%;
}
Aucun commentaire:
Enregistrer un commentaire