Selaa lähdekoodia

Align Title Block Centre

torres126 6 vuotta sitten
vanhempi
commit
ed3ba3b226
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      libretto/style.css

+ 2 - 1
libretto/style.css

@@ -820,9 +820,10 @@ body:not(.libretto-has-header-image) .title-block {
   border-bottom: none;
   bottom: 0;
   color: #faf9f5;
-  /* left: 40%; - still no luck in aligning */
+  left: 50%;
   position: absolute;
   text-shadow: 0 1px 0 #000;
+  transform: translateX(-50%);
   z-index: 1;
 }