C
Cryspy
Guest
Moin,
ich habe eine HTML-Datei mit 2 divs, die mit CSS postioniert habe, aber mit im <div> Inhalt funktioniert jetzt <center> bzw. <text-align="center"> nicht mehr! Woran liegt das?
HTML-Datei:
CSS-Datei
ich habe eine HTML-Datei mit 2 divs, die mit CSS postioniert habe, aber mit im <div> Inhalt funktioniert jetzt <center> bzw. <text-align="center"> nicht mehr! Woran liegt das?
HTML-Datei:
HTML:
<html>
<head>
<title>TEST</title>
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="beige">
<div id="navi">
<center>
<h2>Navigation</h2>
</center>
</div>
<div id="inhalt">
<center>
<h1>Willkommen!</h1>
<center>
</div>
</body>
CSS-Datei
HTML:
div#navi{
border: 5px ridge silver;
color:white;
background-color:darkred;
position:absolute;
width=100;
height:100%;
}
div#navi a{
color:yellow;
font-weight:bold;
}
div#navi a:hover{
font-style:italic;
}
div#inhalt{
position:absolute;
left:150px;