External css

Giganews Newsgroups
Subject: External css
Posted by:  ^Bart (gabriele1NOSP…@hotmail.com)
Date: Tue, 9 Apr 2019

Hi everybody,

I'm trying to insert an external *.css in my webpage but it doesn't work
(if i put my *.css inside my html page it works!); I didn't understood
where's the problem... :\

<!doctype html>
<meta charset="utf-8">
<title>No title</title>
    <link rel="stylesheet" type="text/css" href="topnav.css">
    <div class="topnav">
  <a class="active" href="#home">Home</a>
  <a href="#news">News</a>
  <a href="#contact">Contact</a>
  <a href="#about">About</a>
<div style="padding-left:16px">
  <h2>Top Navigation Example</h2>
  <p>Some content..</p>


Here below the topnav.css (index.php and topnav.css are in the same folder:

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;

..topnav {
  overflow: hidden;
  background-color: #333;

..topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;

..topnav a:hover {
  background-color: #ddd;
  color: black;

..topnav a.active {
  background-color: #4CAF50;
  color: white;