简体   繁体   English

将折叠的标题 header 居中放在博客 emporio 主题上

[英]Center the collapsed Title header on blogger emporio theme

I'm trying to tweak my blogger template (the emporio porcelain theme) to get the collapsed header with my blog logo and text centered.我正在尝试调整我的博客模板(emporio 瓷器主题)以获得折叠的 header,其中我的博客徽标和文本居中。 I have managed to get the logo and the text under it but i'm not being able to fix it to make it center我已经设法获得了徽标和它下面的文字,但我无法修复它以使其居中

.centered-top-container.sticky .widget.Header h1 {display: none;}
.centered-top-container.sticky .header-inner {text-align: center;}
.centered-top-container.sticky .Header .header-image-wrapper {display: block!important;}
.centered-top-container.sticky .Header img{max-height: 50px;  width: auto;}

I'm trying to use text-align: center on header-inner but i'm not being able to do it.我正在尝试使用 text-align: center on header-inner 但我无法做到这一点。 Can anyone help me out on trying to figure what i'm doing wrong?谁能帮我弄清楚我做错了什么?

[blog link][2] [2]: https://www.cheiroaestrume.com/ [博客链接][2][2]:https://www.cheiroaestrume.com/

You should change your flex code.你应该改变你的flex代码。

.sticky .centered-top .blog-name{
  ...
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  ...
}
.sticky .centered-top .search{
  ...
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  ...
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM