Skip to content

Commit

Permalink
Let's define a proper CSS class.
Browse files Browse the repository at this point in the history
  • Loading branch information
fragglet committed Apr 26, 2024
1 parent 6ddfd5d commit 7ea7479
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
5 changes: 2 additions & 3 deletions history2.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,8 @@ You can find out more information about BMB and Imaginet in this discussion
with former BMB employees David L. Clark, Jack Cole and Dave Growden,
recorded for the game's 40th anniversary:

<div style="max-width: 90%; margin: auto;">
<iframe style="width: 100%; aspect-ratio: 16 / 9;"
src="https://www.youtube.com/embed/bIoYM_p3HX4?si=T0qB8ZwW6AqlS51W"
<div class="video-embed">
<iframe src="https://www.youtube.com/embed/bIoYM_p3HX4?si=T0qB8ZwW6AqlS51W"
title="YouTube video player" frameborder="0"
allow="picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen>
Expand Down
11 changes: 11 additions & 0 deletions sopwith.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ img[src*="logos"] {
width: 64px;
}

/* For Youtube videos */
.video-embed {
width: 90%;
margin: auto;
}

.video-embed > iframe {
width: 100%;
aspect-ratio: 16 / 9;
}

a {
font-weight:bold;
color: #0ff;
Expand Down

0 comments on commit 7ea7479

Please sign in to comment.