Created
March 18, 2015 05:49
-
-
Save vyuh/2e704ea7878f818fda6a to your computer and use it in GitHub Desktop.
To inset an image into another. Like a profile photo over banner photo. whim.png is 1500x500. t_pic.jpg 353x353. Only aspect ratios are important.
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
<html> | |
<head> | |
<title>Page Title</title> | |
<style> | |
.description { | |
font-family: Georgia, serif; | |
font-size: .85em; | |
text-align: center; | |
} | |
.wrapper { | |
background: url("whim.png"); | |
background-size: cover; | |
padding: 10%; | |
margin: 5%; | |
padding-right: 60%; | |
} | |
.inset { | |
width:30%; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="wrapper" > | |
<img class="inset" alt="pk" src="t_pic.jpg"/> | |
</div> | |
<p class="description"> | |
To inset an image into another. Like a profile photo over banner photo. | |
whim.png is 1500x500. t_pic.jpg 353x353. Only aspect ratios are important. | |
</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment