Skip to content

Instantly share code, notes, and snippets.

@udibagas
Created April 27, 2018 06:01
Show Gist options
  • Save udibagas/20362214e93d39715700e77a47e64052 to your computer and use it in GitHub Desktop.
Save udibagas/20362214e93d39715700e77a47e64052 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style media="all">
body {
width: 7cm;
margin: 0 auto;
}
.label-container {
height: 5cm;
margin: 1mm;
text-align: center;
border: 1px solid black;
border-radius: 3px;
}
img {
vertical-align: middle;
max-height: 5cm;
max-width:7cm;
}
.helper {
display: inline-block;
height: 100%;
vertical-align: middle;
}
</style>
</head>
<body>
<div class="label-container">
<span class=helper></span>
<img src="images/camera.jpg">
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment