Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Images Module Level 3: image-orientation with background properties reference</title>
<link rel="author" title="Stephen Chenney" href="mailto:schenney@chromium.org">
<style>
div {
position: absolute;
width: 200px;
height: 200PX;
background-image: url(../support/exif-orientation-5-lu-pre-rotated.jpg);
background-repeat: no-repeat;
border-radius: 5px;
}
.repeat {
background-repeat: repeat;
top: 20px;
left: 20px;
}
.position {
background-position: bottom right;
top: 20px;
left: 240px;
}
.cover {
background-size: cover;
top: 240px;
left: 20px;
}
.contain {
background-size: contain;
top: 240px;
left: 240px;
}
</style>
</head>
<body>
<div class="repeat">
</div>
<div class="position">
</div>
<div class="cover">
</div>
<div class="contain">
</div>
</body>
</html>