浏览代码

Align Title Block Centre

torres126 6 年之前
父节点
当前提交
ed3ba3b226
共有 1 个文件被更改,包括 2 次插入1 次删除
  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;
 }