File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 " />
5+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
6+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7+ < title > Resize</ title >
8+ < style >
9+ .wrapper {
10+ display : flex;
11+ width : 800px ;
12+ justify-content : space-between;
13+ }
14+ div {
15+ width : 320px ;
16+ overflow : hidden; /*important for resize */
17+ text-align : center;
18+ resize : both;
19+ }
20+ div img {
21+ width : 100% ;
22+ height : auto;
23+ object-fit : cover;
24+ }
25+ </ style >
26+ </ head >
27+ < body >
28+ < div class ="wrapper ">
29+ < div >
30+ < img src ="../img/birds.png " alt ="" />
31+ < h1 > Title</ h1 >
32+ < p >
33+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Aperiam
34+ molestiae delectus, magnam repellendus, quisquam excepturi quaerat
35+ exercitationem qui expedita dolor voluptate quidem, quis possimus
36+ sequi culpa. Voluptatum pariatur nesciunt sint?
37+ </ p >
38+ </ div >
39+ < div >
40+ < img src ="../img/birds.png " alt ="" />
41+ < h1 > Title</ h1 >
42+ < p >
43+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Aperiam
44+ molestiae delectus, magnam repellendus, quisquam excepturi quaerat
45+ exercitationem qui expedita dolor voluptate quidem, quis possimus
46+ sequi culpa. Voluptatum pariatur nesciunt sint?
47+ </ p >
48+ </ div >
49+ </ div >
50+ </ body >
51+ </ html >
You can’t perform that action at this time.
0 commit comments