]> git.plutz.net Git - serve0/commitdiff
prevent jittering due to scroll bars in some browsers
authorPaul Hänsch <paul@plutz.net>
Mon, 25 Mar 2019 18:40:31 +0000 (19:40 +0100)
committerPaul Hänsch <paul@plutz.net>
Mon, 25 Mar 2019 18:40:31 +0000 (19:40 +0100)
style.css

index bfd8541ed38e9e5c1d22e2c5e2bdd5dd9bba4c13..2e461e13a1ca0b7c11496339b6e5f74b1a75e248 100644 (file)
--- a/style.css
+++ b/style.css
@@ -375,8 +375,9 @@ body#view { padding-bottom: 6em; }
 }
 
 #view #mainvideo {
 }
 
 #view #mainvideo {
-  display: inline;
-  width: 100%;
+  display: block;
+  width: 98%;
+  margin-left: auto; margin-right: auto;
   max-height: 240px;
 }
 @media(min-height: 400px) { #view #mainvideo { max-height: 320px; } }
   max-height: 240px;
 }
 @media(min-height: 400px) { #view #mainvideo { max-height: 320px; } }