-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb89625
commit 36907fc
Showing
2 changed files
with
30 additions
and
8 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,27 @@ | ||
<!DOCTYPE html> | ||
<html lang="ru"> | ||
<head> | ||
<link rel="stylesheet" href="../../assets/css/main.css"> | ||
<link rel="stylesheet" href="./srcset.css"> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> | ||
|
||
<head> | ||
<link rel="stylesheet" href="../../assets/css/main.css"> | ||
<link rel="stylesheet" href="./srcset.css"> | ||
|
||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Srcset</title> | ||
</head> | ||
|
||
<body> | ||
<div class="image__wrapper"> | ||
<img src="./public/forest_400.jpg" alt="forest image" | ||
|
||
srcset=" | ||
./public/forest_400.jpg 400w, | ||
./public/forest_768.jpg 768w" | ||
|
||
sizes=" | ||
(max-width: 400px) 300px, | ||
(max-width: 768px) 300px"> | ||
</div> | ||
</body> | ||
|
||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.image__wrapper { | ||
width: 300px; | ||
height: 300px; | ||
overflow: hidden; | ||
} |