Gibt es eine einfachere Möglichkeit, diese Funktion zu erreichen?
Posted: 06 Feb 2025, 03:02
Ich bin ein Anfänger -Lerner von Frontend. Jetzt beginne ich mein erstes Projekt. Ich möchte nur, dass der H5 einfach vertikal zentriert ist. Die Art und Weise, wie ich diese drei Codezeilen hinzufügen kann.
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.
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.