Я просто хочу, чтобы H5 просто был по -вертикально сосредоточен. То, как я могу придумать, - это добавить эти три строки кода.
Document
Welcome to Fi-mall
[url=javascript:;]Login[/url]
[url=javascript:;]Sign in[/url]
< /code>
// wrapper
#wrapper {
//header
header {
background-color: skyblue;
height: 30px;
#headerTop {
height: 100%;
#headerTopMain {
height: 100%;
width: 1200px;
margin: 0 auto;
#left {
height: 100%;
display: flex;
align-items: center;
h5 {
color: black;
font-size: 15px;
font-weight: bold;
margin-right: 10px;
}
p {
}
}
}
}
}
}
< /code>
Is there a simpler way to achive this? Thank you for your replying.
Подробнее здесь: https://stackoverflow.com/questions/794 ... s-function