Skip to content

Website loses css content when hosted on linux server

I have a website that is primarily html5 and css3, and the pages look good when I run them locally from my pc on chrome and internet explorer 11.0.47, but when I put it on the Linux server and run the page from there on my own pc, the page loses the css in IE but is fine in chrome.

I don’t have a lot of experience with html5/css3. What’s going on here? I tried googling it, but don’t see any online help.

The web page is start of web site. As you can see, in IE, Map Home isn’t shown as a button in nav to the left, and nav lost it’s brown background. It also lost the header background. If you look at the link in chrome, it has those.

Any ideas? Could there be a directional issue with use of the media folder when IE pulls it from Linux but not chrome?

**Added: I see this on the server log, but when I list the location on the server, the file exists there. The css file (catvStyles.css) referring to the globe file is in the same dir as index.html, and the media dir is in the dir of index.html.

File does not exist: /opt/apps/html/catv/media/globe_transp_gradation.png), url(.., referer:

** This looks similar to other web page if you can’t reach the link. The problem is my linux hosted site isn’t showing the brown nav to the left, it’s not showing the metal header globe, and windmill pictures, and it’s not showing Map Home in a button (it’s as a link without the button), and it’s not showing the picture in the right side to the right (it’s in the body now).

This is the index.html page:

<!DOCTYPE html>
<html lang="en">
<link type="text/css" rel="stylesheet" href="FunStuff/catvStyles.css">
<title>CATV Monitoring</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Wi">
<meta name="keywords" content="catv, cmts, snmp, modem, dhcp, rf, status, map">
<meta name="author" content="Wi, Michele, Adam">

<style type="text/css">

<!--[if lt IE 9]>
   <script src=""> </script>
<div id="wrapper">
  <header role="banner" class="bgFun">
    <h2 id="headerH2Pos">CATV Monitoring System</h2>
  <div id="page">
  <nav role="navigation" id="navBakImg">
     <li><a href="FunStuff/ClusterMap.html">Map Home</a></li> <!--MapHome.html-->


   <main role="main" id="middle">
    <p>To provide CATV Monitoring to our internal customers</p>
    <h2>Mapping </h2>
    <p>Click the "Map Home" link on the left to see how the network is doing </p>
    <img class="imgFix" src="media/WIN_Vert_Green_Logo.png"  height:"18" width:"15" alt="Logo" title="Wi" >
    <aside role="complementary">
      <img class="imgFix" src="media/WIN_Vert_Green_Logo.png"  height:"18" width:"15" alt="Logo" title="Wi" >
     <h2>How To Start</h2>
     <p>See directions</p>
   </div> <!-- end of flex container -->
   <footer role="contentinfo">
      <a href="" target="_blank"><img class="tree" src="media/Tree_Branches_And_Roots_clip_art_small.png"  height="50" width="50" alt="Tree" title="Created by Michele " ></a>
      <br>Copyright &copy; 2017
        document.write('Last Modified: ' + document.lastModified);


This is the css catvStyles.css:

body {font-family: Verdana, Arial, sans-serif;
      background-color: #330000;
      background-image: url(../media/green.gif);

header, h1, wrapper { margin-top: 0; }
#wrapper {  background-color: #F4E8BC;
            /*background-color: #00ffff;*/
            width: 90%;
            margin: auto;
            color: #003300;/*color: #330000;*/

h1, h2 { color: #003300; }
header {
         background-repeat: no-repeat;
.bgFun{background-image: url(../media/globe_transp_gradation.png),
         background-position: left, right;
         /*width: 80%;
h1 { text-align: center;
      font-size: 300%;
     padding: 5% 0;
     text-shadow: 3px 3px 3px #F4E8BC;
nav, main, aside {  padding: 0 1em;
.imgFix { width: 25%;
      height: auto;
nav ul { list-style-type: none;
         font-size: 1.2em;
         padding-left: 0;
/*nav a { text-decoration: none;}*/
nav a {
   text-decoration: none;
   background-color: #666666;
   margin:1em auto;
   border:solid .08em #339900
nav a:link { color: #330000; }
nav a:visited { color: #003300; }
nav a:hover { color: #996600;
footer { text-align: center;
         font-size: 80%;
         font-style: italic;
         color: #003300;
         padding: 2.5%;
#page{display: -webkit-flex;
      display: flex;
      -webkit-flex-direction: row;
      flex-direction: row;
#navBakImg{border: .1em solid #000000;
    background-image: url(../media/CardboardPlain0016_2_M.jpg);
nav{-webkit-flex: 1;
    flex: 1;
main{-webkit-flex: 7;
aside{-webkit-flex: 2;
      flex: 2;
.tree { width:3em;
        height: auto;

@media only screen and (max-width: 1024px) {
            body { margin: 0; padding: 0; }
            #wrapper { width: auto; margin: 0; }
            h1 { font-size: 200%; }
            nav li { padding: 0 0.5em;
                     font-size: 1.2em;
        #page{-webkit-flex-direction: column;
                  flex-direction: column;
            nav ul{display: -webkit-flex;
                   display: flex;
                   -webkit-flex-direction: row;
                   flex-direction: row;
                   webkit-justify-content: center;
                   justify-content: center;
            .imgFix { width: 30%;
            height: auto;}

@media only screen and (max-width: 768px) {
            nav{-webkit-order: 1;
                order: 1;
            nav ul{-webkit-flex-wrap: wrap;
                   flex-wrap: wrap;
            .imgFix { width: 35%;
            height: auto;}
header, main, nav, footer, figure, figcaption { display: block; }



I had to add this line and it was fixed:

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
User contributions licensed under: CC BY-SA
5 People found this is helpful