Mam bardzo dziwny problem. Mam taki kod:
<!DOCTYPE HTML>
<html lang="pl">
<head>
<meta charset="utf-8">
<title>Chat online</title>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div class="container">
<div class="top">
CHAT ONLINE
</div>
<div class="content">
Messages
<br>
<a href="logout.php">Logout</a>
</div>
<div class="footer">
</div>
</div>
</body>
</html>
Oraz jego stylizację:
.error
{
color: rgb(255, 0, 0);
}
.top
{
color: rgb(255, 0, 0);
}
Problem jest w tym, że gdy górny div ma klasę "top", to zachowuje się, jakby nie był stylizowany. Gdy zmienię klasę na "error" to tekst nagle robi się czerwony. O co może chodzić? Próbowałem już nawet zamieniać stylizację top z error miejscami a i tak, nic nie działa.