Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
week-9/index.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
27 lines (25 sloc)
787 Bytes
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Picture element practice</title> | |
</head> | |
<style> | |
html{overflow-x: hidden;} | |
img {display: block; margin: 0 auto;} | |
body{background-color:gainsboro ;} | |
</style> | |
<body> | |
<aside> | |
<picture> | |
<!--extra large image displayed at 1100px and higher--> | |
<source media="(min-width: 1100px)" srcset="images/extralarge.jpg"> | |
<!--large image displayed at 945px to 1099px--> | |
<source media="(min-width: 945px)" srcset="images/art-large.jpg"> | |
<!--medium image displayed at 944px and lower--> | |
<img src="images/art-medium.jpg" alt="statue image"> | |
</picture> | |
</aside> | |
</body> | |
</html> |