text-align:center; funktioniert nicht?
Ich versuche schon seit geraumer Zeit dieses Problem zu lösen, doch ich komme einfach nicht dahinter, vielleicht kann mir hier jemand netterweise bei meinem Problem weiterhelfen.
<!DOCTYPE html>
<style>
body{
font-family: Georgia, 'Times New Roman', Times, serif;
}
#top{
text-align: center;
}
#logo{
color:rgb(255, 255, 255);
background-color: crimson;
display: inline-flex;
font-size: 32px;
font-weight: bold;
padding: 8px;
margin-top: 16px;
}
#logo-name {
font-size: 32px;
font-weight: bold;
margin: 16px;
text-align: center;
}
</style>
<html>
<head>
<title> Homepage </title>
</head>
<body>
<div id="top"></div>
<div id="logo">OH</div>
<div id="logo-name">Homepage</div>
<div id="main"></div>
<div id="footer"></div>
</body>
</html>
HTML,
programmieren,
CSS,
Webdesign,
Webentwicklung