Skip to content

Commit e65d3f5

Browse files
committed
Make image max-width visible
1 parent 9d68975 commit e65d3f5

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

flexbox/use-cases/media-flipped.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
}
2828

2929
textarea:nth-of-type(1) {
30-
height: 250px;
30+
height: 310px;
3131
}
3232

3333
textarea:nth-of-type(2) {
@@ -56,10 +56,6 @@
5656
margin: 5px;
5757
}
5858

59-
img {
60-
max-width: 100%;
61-
}
62-
6359
.media {
6460
width: 500px;
6561
border: 2px dotted rgb(96, 139, 168);
@@ -74,6 +70,9 @@
7470
}
7571
</style>
7672
<style class="editable">
73+
img {
74+
max-width: 100%;
75+
}
7776
.media {
7877
display: flex;
7978
align-items: flex-start;
@@ -99,6 +98,10 @@
9998
</div>
10099
</section>
101100
<textarea class="playable-css">
101+
img {
102+
max-width: 100%;
103+
}
104+
102105
.media {
103106
display: flex;
104107
align-items: flex-start;

flexbox/use-cases/media.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
}
2828

2929
textarea:nth-of-type(1) {
30-
height: 180px;
30+
height: 240px;
3131
}
3232

3333
textarea:nth-of-type(2) {
@@ -56,10 +56,6 @@
5656
margin: 5px;
5757
}
5858

59-
img {
60-
max-width: 100%;
61-
}
62-
6359
.media {
6460
width: 500px;
6561
border: 2px dotted rgb(96, 139, 168);
@@ -70,6 +66,9 @@
7066
}
7167
</style>
7268
<style class="editable">
69+
img {
70+
max-width: 100%;
71+
}
7372
.media {
7473
display: flex;
7574
align-items: flex-start;
@@ -92,6 +91,10 @@
9291
</div>
9392
</section>
9493
<textarea class="playable-css">
94+
img {
95+
max-width: 100%;
96+
}
97+
9598
.media {
9699
display: flex;
97100
align-items: flex-start;

0 commit comments

Comments
 (0)