Looking for assistance in centering my code vertically and horizontally, while also dealing with images of various sizes.
CSS:
body {
margin: 0px;
}
.wrapper {
text-align:center;
width: 100%;
height: 100%;
position: relative;
z-index: 21
}
.wrapper img {
display: table-cell;
vertical-align: middle;
}
HTML:
<div class="wrapper">
<img src="http://static.desktopnexus.com/thumbnails/196734-bigthumbnail.jpg" />
</div>