Created
April 10, 2016 18:50
-
-
Save Minoru/e5142521663ad66a5435a2218987fbad to your computer and use it in GitHub Desktop.
Trying to shrink an image to container's height
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>test</title> | |
<link rel="stylesheet" href="http://loglist.net/stylesheets/reset.css"> | |
<style type="text/css" media="screen"> | |
.plate { | |
background: #aaaaaa; | |
} | |
.center-content { | |
display: block; | |
margin-left: auto; | |
margin-right: auto; | |
width: 960px; | |
} | |
ul.menu { | |
display: flex; | |
justify-content: space-between; | |
padding: 5px; | |
margin-top: 5px; | |
margin-bottom: 5px; | |
box-sizing: border-box; | |
} | |
.menu li { | |
display: inline-block; | |
} | |
</style> | |
</head> | |
<body> | |
<ul class="plate menu center-content"> | |
<li>text</li> | |
<li><img src="https://upload.wikimedia.org/wikipedia/commons/4/43/Feed-icon.svg"></li> | |
</ul> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment