Skip to content

Commit

Permalink
add viewport options for iframe
Browse files Browse the repository at this point in the history
update the css
  • Loading branch information
ax0rz0 committed Jan 8, 2024
1 parent 709df2c commit 5414b0e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ <h2><a href="https://discord.gg/VSW6DPzRm8" style="text-decoration:none">Join</a

<!--made with love by ax0rz0-->




11 changes: 11 additions & 0 deletions main.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ iframe {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);

height: 47vh; /* Viewport-relative units */
width: 50vw;
}


Expand All @@ -43,3 +46,11 @@ opacity: 0;
100% {
opacity: 1;
}








0 comments on commit 5414b0e

Please sign in to comment.