Skip to content

Commit 9d90bb3

Browse files
committed
fixing resume rendering in iframe on mobile device
used height=90vh to set a relative height to the screen size
1 parent 0094cbb commit 9d90bb3

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

_includes/css/grayscale.css

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -483,18 +483,24 @@ body {
483483
content: "."
484484
}
485485

486-
.resume {
486+
.resume-ratio-box {
487+
position: relative;
487488
width: 100%;
488-
aspect-ratio: 100%;
489-
}
489+
aspect-ratio: 22 / 17;
490+
490491

492+
}
493+
/*.resume {
494+
width: 100%;
495+
/* aspect-ratio: 22/17;
496+
}*/
491497

492498
@media(min-width:767px) {
493499
.resume {
494500
width: 100%;
495-
aspect-ratio: 17 / 22;
501+
/*aspect-ratio: 22 / 17;*/
496502
}
497-
}
503+
}*/
498504

499505
/*! div style */
500506
.image-gallery {

_includes/resume.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<!--- Resume Section-->
22
<section id="resume" class="container resume-section text-center">
33
<div class="row justify-content-center">
4-
<div class="col-lg-8 col-lg-offset-2">
4+
<div class="col-lg-8 col-lg-offset-2" >
55
<h2 id="resume">Resume</h2>
66
<!--- <div class="d-flex flex-lg-row"> --->
7+
<!---<div id="resume-ratio-box"> --->
8+
<iframe src="https://drive.google.com/file/d/1TJVjck10_V3kCWGMj6SsZk0QMXOdq9pm/preview" style='width: 100%; height: 90vh' id="resume"></iframe>
79

8-
<iframe src="https://drive.google.com/file/d/1TJVjck10_V3kCWGMj6SsZk0QMXOdq9pm/preview" width="100%", height="600px" id="resume"></iframe>
9-
10-
<!----</div> ---->
10+
11+
<!---</div> --->
12+
<!---</div> --->
1113
</div>
1214
</div>
1315
</section>

0 commit comments

Comments
 (0)